*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:     #1a56db;
    --primary-dark:#1341b0;
    --accent:      #f97316;
    --bg-right:    #0f172a;
    --text-main:   #1e293b;
    --text-muted:  #64748b;
    --border:      #e2e8f0;
    --input-bg:    #f8fafc;
    --white:       #ffffff;
    --radius:      12px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--white);
    height: 100vh;
    overflow: hidden;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
    display: flex;
    height: 100vh;
}

/* ── Lado esquerdo: login ────────────────────────────── */
.left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--white);
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--white);
    margin-bottom: 28px;
}

.login-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 36px;
}

/* ── Formulário ──────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--input-bg);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
    background: var(--white);
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* campo senha com ícone */
.input-password {
    position: relative;
}

.input-password input {
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary);
}

/* ── Botão ───────────────────────────────────────────── */
.btn-login {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.35);
}

.btn-login:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}

.btn-login:active {
    transform: scale(0.98);
}

/* ── Lado direito: branding ──────────────────────────── */
.right {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a56db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

/* círculos decorativos */
.right::before,
.right::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--white);
}

.right::before {
    width: 500px;
    height: 500px;
    top: -160px;
    right: -160px;
}

.right::after {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
}

.brand {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.brand-icon {
    display: inline-block;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 18px 32px;
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
}

.brand h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 18px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.brand p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 36px;
}

.brand-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.brand-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.brand-dots span:first-child {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* ── Responsivo ──────────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    body {
        overflow: auto;
    }

    .right {
        padding: 48px 32px;
        order: -1;
    }

    .brand h1 {
        font-size: 1.5rem;
    }

    .left {
        padding: 40px 24px;
    }
}
