:root {
    --vh-blue: #2563eb;
    --vh-blue-hover: #1d4ed8;
    --vh-dark: #0f172a;
    --vh-muted: #64748b;
    --vh-bg: #f1f5f9;
    --vh-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--vh-font);
    background: var(--vh-bg);
    color: var(--vh-dark);
}

.auth-flash {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: .65rem 1.25rem;
    border-radius: 10px;
    font-size: .88rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    max-width: 90%;
}

.auth-flash--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.auth-flash--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.auth-split {
    min-height: 100vh;
    display: flex;
}

/* ─── Painel esquerdo ─── */
.auth-brand-panel {
    display: none;
    flex: 1.1;
    background: var(--vh-dark);
    color: #e2e8f0;
    padding: 3.5rem 4rem;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 30%, rgba(37, 99, 235, .18), transparent),
        radial-gradient(ellipse 55% 45% at 85% 75%, rgba(139, 92, 246, .12), transparent);
    pointer-events: none;
}

.auth-brand-panel > * { position: relative; z-index: 1; max-width: 28rem; }

@media (min-width: 992px) {
    .auth-brand-panel { display: flex; }
}

.auth-brand-tagline {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 1.25rem;
}

.auth-brand-lead {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 2.5rem;
}

.auth-brand-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-brand-points li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.auth-brand-points i {
    color: #34d399;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: .15rem;
}

/* ─── Formulário ─── */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--vh-bg);
}

.auth-page-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card-logo {
    display: block;
    text-decoration: none;
    margin: 0 auto 1rem;
    overflow: visible;
    padding: 6px 0;
    line-height: normal;
}

.auth-card-logo .brand-logo-img--auth {
    margin: 0 auto;
}

.auth-page-card h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 .35rem;
    letter-spacing: -.01em;
}

.auth-page-card .auth-sub {
    color: var(--vh-muted);
    font-size: .92rem;
    margin: 0;
}

.auth-page-card .form-label {
    font-size: .9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .4rem;
}

.auth-page-card .form-control-lg {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    padding: .75rem 1rem;
    font-size: 1rem;
}

.auth-page-card .form-control-lg::placeholder { color: #94a3b8; }

.auth-page-card .form-control-lg:focus {
    border-color: var(--vh-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-form-meta { font-size: .9rem; }

.auth-page-card .form-check-label { color: #475569; }

.auth-password-wrap { position: relative; }
.auth-password-wrap .form-control { padding-right: 2.75rem; }

.auth-password-toggle {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: .35rem;
    font-size: 1.1rem;
}

.auth-forgot {
    color: var(--vh-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot:hover { text-decoration: underline; }

.auth-page-card .btn-primary {
    background: var(--vh-blue);
    border-color: var(--vh-blue);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    padding: .8rem;
}

.auth-page-card .btn-primary:hover {
    background: var(--vh-blue-hover);
    border-color: var(--vh-blue-hover);
}

.auth-page-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .95rem;
}

.auth-page-links a {
    color: var(--vh-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-page-legal {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .8rem;
}

.auth-page-legal a {
    color: #94a3b8;
    text-decoration: none;
}
