/* =============================================================================
   Login — visual profissional (fintech / ERP financeiro)
   Usado apenas com .auth-body.auth-login-page + login_new.html
   ============================================================================= */

.auth-login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    background: #000;
}

@media (min-width: 992px) {
    .auth-login-shell {
        /* 60% painel lateral (marca) | 40% área do formulário */
        grid-template-columns: 6fr 4fr;
    }
}

/* Painel esquerdo — marca e confiança */
.auth-login-aside {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2rem;
    background: linear-gradient(165deg, #0c0c0c 0%, #050505 45%, #0a0a0a 100%);
    border-right: 1px solid rgba(245, 197, 24, 0.12);
    overflow: hidden;
}

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

.auth-login-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 197, 24, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 24, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.auth-login-aside::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -30%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(245, 197, 24, 0.09) 0%, transparent 65%);
    pointer-events: none;
}

.auth-login-aside-inner {
    position: relative;
    z-index: 1;
}

.auth-login-brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-login-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-size: 1.35rem;
    box-shadow: 0 8px 28px rgba(245, 197, 24, 0.22);
}

.auth-login-aside-title {
    font-family: var(--font-family-headings);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fafaf9;
    margin: 0;
    line-height: 1.2;
}

.auth-login-aside-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 197, 24, 0.85);
    border: 1px solid rgba(245, 197, 24, 0.25);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.auth-login-aside-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(250, 250, 249, 0.72);
    margin-bottom: 2rem;
    max-width: 26rem;
}

.auth-login-trust {
    margin: 0;
    padding: 0;
}

.auth-login-trust li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8125rem;
    color: rgba(250, 250, 249, 0.78);
    margin-bottom: 0.85rem;
    line-height: 1.45;
}

.auth-login-trust li:last-child {
    margin-bottom: 0;
}

.auth-login-trust .bi {
    color: var(--gold);
    font-size: 1.05rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.auth-login-aside-footer {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250, 250, 249, 0.35);
}

/* Área do formulário */
.auth-login-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #000;
    position: relative;
}

.auth-login-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 197, 24, 0.07), transparent 55%);
    pointer-events: none;
}

.auth-body.auth-login-page .auth-container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Card do formulário — vidro + borda dourada */
.auth-body.auth-login-page .login-card.auth-login-card-pro {
    border-radius: 18px;
    padding: 2.25rem 1.75rem !important;
    background: linear-gradient(160deg, rgba(18, 18, 18, 0.97) 0%, rgba(8, 8, 8, 0.98) 100%) !important;
    border: 1px solid rgba(245, 197, 24, 0.22) !important;
    box-shadow:
        0 0 0 1px rgba(245, 197, 24, 0.06),
        0 4px 6px rgba(0, 0, 0, 0.35),
        0 24px 56px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .auth-body.auth-login-page .login-card.auth-login-card-pro {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: min(420px, 100%);
    }
}

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

.auth-login-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 197, 24, 0.75);
    margin-bottom: 0.5rem;
}

.auth-body.auth-login-page .login-card.auth-login-card-pro h2.auth-login-title {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff !important;
    margin-bottom: 0.5rem;
}

.auth-login-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(245, 197, 24, 0.65) !important;
    margin: 0;
}

.auth-login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem;
    color: rgba(245, 197, 24, 0.35);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-login-divider::before,
.auth-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.25), transparent);
}

.auth-login-footer-note {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(245, 197, 24, 0.45) !important;
    margin-bottom: 1rem !important;
}

.auth-login-secure-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: rgba(250, 250, 249, 0.4);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(245, 197, 24, 0.1);
}

.auth-login-secure-strip .bi {
    color: rgba(245, 197, 24, 0.55);
}

/* Mobile: barra compacta de marca acima do form */
.auth-login-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.25rem 1rem 0;
    margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
    .auth-login-mobile-brand {
        display: none;
    }
}

.auth-login-mobile-brand .auth-login-brand-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

.auth-login-mobile-brand span {
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fafaf9;
    letter-spacing: -0.02em;
}

/* Campos — espaçamento */
.auth-body.auth-login-page .auth-login-card-pro .mb-3 {
    margin-bottom: 1.15rem !important;
}

.auth-body.auth-login-page .auth-login-card-pro .form-label {
    font-size: 0.8125rem;
    margin-bottom: 0.45rem;
}

/* Alertas no card */
.auth-body.auth-login-page .login-card .alert {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-body.auth-login-page .login-card .alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Título principal do card pro */
.auth-body.auth-login-page .login-card.auth-login-card-pro h2.auth-login-title {
    color: #fafaf9 !important;
}

/* Botão primário um pouco mais alto em telas financeiras */
.auth-body.auth-login-page .btn-modern.btn-lg {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

/* =============================================================================
   Prévia dashboard / gráficos (decorativo)
   ============================================================================= */

.auth-login-dash-mock {
    margin-top: 1.75rem;
    padding: 1rem 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid rgba(245, 197, 24, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-login-dash-mock-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 197, 24, 0.75);
    margin: 0 0 0.75rem;
}

.auth-login-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.auth-login-kpi-row--compact {
    gap: 0.35rem;
}

.auth-login-kpi-mini {
    padding: 0.45rem 0.4rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
}

.auth-login-kpi-mini--in {
    border-color: rgba(34, 197, 94, 0.25);
}

.auth-login-kpi-mini--out {
    border-color: rgba(239, 68, 68, 0.25);
}

.auth-login-kpi-mini--bal {
    border-color: rgba(245, 197, 24, 0.3);
}

.auth-login-kpi-mini-h {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250, 250, 249, 0.45);
    margin-bottom: 0.2rem;
}

.auth-login-kpi-mini-v {
    display: block;
    font-family: var(--font-family-mono), ui-monospace, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fafaf9;
    letter-spacing: -0.02em;
}

.auth-login-kpi-mini-d {
    display: block;
    font-size: 0.62rem;
    margin-top: 0.15rem;
    color: rgba(250, 250, 249, 0.5);
}

.auth-login-kpi-mini-d--up {
    color: #86efac !important;
}

.auth-login-kpi-mini-d--dot {
    color: var(--gold) !important;
    font-size: 0.5rem;
    line-height: 1;
}

.auth-login-chart-panel {
    margin-top: 0.25rem;
}

.auth-login-chart-title {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250, 250, 249, 0.4);
    margin: 0 0 0.35rem;
}

.auth-login-chart-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100px;
    border-radius: 8px;
}

.auth-login-line-path {
    filter: drop-shadow(0 2px 8px rgba(245, 197, 24, 0.25));
}

.auth-login-bar-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    height: 44px;
    margin-top: 0.65rem;
    padding: 0 0.15rem;
}

.auth-login-bar {
    flex: 1;
    min-width: 0;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, rgba(245, 197, 24, 0.55) 0%, rgba(245, 197, 24, 0.12) 100%);
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.08);
    animation: auth-login-bar-pulse 4.5s ease-in-out infinite;
}

.auth-login-bar:nth-child(2) { animation-delay: 0.2s; }
.auth-login-bar:nth-child(3) { animation-delay: 0.4s; }
.auth-login-bar:nth-child(4) { animation-delay: 0.6s; }
.auth-login-bar:nth-child(5) { animation-delay: 0.8s; }
.auth-login-bar:nth-child(6) { animation-delay: 1s; }
.auth-login-bar:nth-child(7) { animation-delay: 1.2s; }

@keyframes auth-login-bar-pulse {
    0%, 100% { opacity: 0.85; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.15); }
}

.auth-login-chart-caption {
    font-size: 0.58rem;
    color: rgba(250, 250, 249, 0.28);
    margin: 0.5rem 0 0;
    text-align: center;
    letter-spacing: 0.04em;
}

/* Faixa mobile — KPI + barras */
.auth-login-mobile-dash {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.75rem;
}

.auth-login-mobile-dash .auth-login-kpi-row--compact .auth-login-kpi-mini {
    padding: 0.35rem 0.25rem;
}

.auth-login-mobile-dash .auth-login-kpi-mini-v {
    font-size: 0.72rem;
}

.auth-login-spark-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 36px;
    padding: 0 0.5rem;
}

.auth-login-spark-bars span {
    flex: 1;
    max-width: 36px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(245, 197, 24, 0.5), rgba(245, 197, 24, 0.08));
    animation: auth-login-bar-pulse 3.8s ease-in-out infinite;
}

.auth-login-spark-bars span:nth-child(2) { animation-delay: 0.15s; }
.auth-login-spark-bars span:nth-child(3) { animation-delay: 0.3s; }
.auth-login-spark-bars span:nth-child(4) { animation-delay: 0.45s; }
.auth-login-spark-bars span:nth-child(5) { animation-delay: 0.6s; }
.auth-login-spark-bars span:nth-child(6) { animation-delay: 0.75s; }

/* Decoração suave atrás do formulário (desktop) */
@media (min-width: 992px) {
    .auth-login-main::after {
        content: "";
        position: absolute;
        right: -5%;
        bottom: 5%;
        width: min(55vw, 520px);
        height: 200px;
        background:
            radial-gradient(ellipse at 70% 80%, rgba(245, 197, 24, 0.06) 0%, transparent 55%),
            linear-gradient(135deg, transparent 45%, rgba(245, 197, 24, 0.03) 50%, transparent 55%);
        pointer-events: none;
        z-index: 0;
    }
}
