/**
 * Login Gestor + Portal do Cliente — identidade WB_ANALISE
 */

.admin-login-page,
.client-login-page {
    --al-ink: #e8eef7;
    --al-muted: #8fa3bc;
    --al-line: rgba(148, 163, 184, 0.16);
    --al-teal: #14b8a6;
    --al-sky: #0ea5e9;
    --al-grad: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 55%, #38bdf8 100%);
    --al-font: 'Figtree', 'Segoe UI', sans-serif;
    --al-display: 'Sora', 'Figtree', sans-serif;
    --al-bg: #070d18;
    margin: 0;
    min-height: 100vh;
    font-family: var(--al-font);
    color: var(--al-ink);
    background: var(--al-bg);
    overflow-x: hidden;
}

.admin-login-page .login-container,
.client-login-page .login-container {
    display: none;
}

.client-login-page .al-visual {
    background:
        radial-gradient(ellipse 80% 55% at 18% 8%, rgba(14, 165, 233, 0.2), transparent 55%),
        radial-gradient(ellipse 55% 40% at 92% 78%, rgba(20, 184, 166, 0.14), transparent 50%),
        linear-gradient(165deg, #0a1222 0%, #070d18 55%, #0b1526 100%);
}

.client-login-page .al-kicker {
    color: var(--al-sky);
}

.al-metric strong.cl-slug {
    font-size: 0.92rem;
    word-break: break-all;
    color: #7dd3fc;
}

.al-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.al-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    border-right: 1px solid var(--al-line);
    background:
        radial-gradient(ellipse 80% 55% at 20% 10%, rgba(20, 184, 166, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 45% at 90% 80%, rgba(14, 165, 233, 0.16), transparent 50%),
        linear-gradient(165deg, #0a1222 0%, #070d18 55%, #0b1526 100%);
}

.al-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 40% 45%, #000 20%, transparent 75%);
    pointer-events: none;
    animation: al-grid-drift 28s linear infinite;
}

.al-visual::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    right: -120px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 68%);
    pointer-events: none;
    animation: al-orb 10s ease-in-out infinite alternate;
}

.al-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: fit-content;
    animation: al-rise 0.7s ease both;
}

.al-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--al-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    background: var(--al-grad);
    letter-spacing: -0.02em;
}

.al-brand-name {
    font-family: var(--al-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    background: var(--al-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.al-visual-copy {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: auto 0;
    padding: 32px 0;
    animation: al-rise 0.85s 0.08s ease both;
}

.al-kicker {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--al-teal);
}

.al-visual-copy h1 {
    margin: 0 0 16px;
    font-family: var(--al-display);
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #f4f8ff;
}

.al-visual-copy p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--al-muted);
    max-width: 38ch;
}

.al-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    animation: al-rise 0.9s 0.16s ease both;
}

.al-metric {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--al-line);
    background: rgba(8, 14, 26, 0.55);
    backdrop-filter: blur(8px);
}

.al-metric span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--al-muted);
    margin-bottom: 6px;
}

.al-metric strong {
    font-family: var(--al-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #eaf3ff;
}

.al-metric strong.ok { color: #34d399; }
.al-metric strong.warn { color: #fbbf24; }

.al-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
    background:
        linear-gradient(180deg, rgba(12, 20, 36, 0.92), rgba(7, 13, 24, 0.98));
    animation: al-rise 0.75s 0.12s ease both;
}

.al-panel-inner {
    width: min(420px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 18px;
    border: 1px solid var(--al-line);
    background:
        linear-gradient(165deg, rgba(16, 26, 44, 0.92), rgba(10, 16, 30, 0.88));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.al-panel-top {
    margin-bottom: 28px;
}

.al-panel-top h2 {
    margin: 0 0 8px;
    font-family: var(--al-display);
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f5f8ff;
}

.al-panel-top p {
    margin: 0;
    color: var(--al-muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

.al-form .form-group {
    margin-bottom: 16px;
}

.al-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #c5d2e4;
}

.al-form .form-control {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.85);
    color: var(--al-ink);
    font-family: var(--al-font);
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.al-form .form-control::placeholder {
    color: #647890;
}

.al-form .form-control:hover {
    border-color: rgba(148, 163, 184, 0.38);
}

.al-form .form-control:focus {
    border-color: color-mix(in srgb, var(--al-teal) 70%, #fff);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
    background: rgba(10, 18, 32, 0.95);
}

.al-submit {
    width: 100%;
    margin-top: 8px;
    height: 50px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--al-display);
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #041018;
    background: var(--al-grad);
    transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.al-submit:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.al-submit:active:not(:disabled) {
    transform: translateY(0);
}

.al-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.al-foot {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.al-foot a {
    color: var(--al-sky);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.al-foot a:hover {
    text-decoration: underline;
}

.al-foot span {
    font-size: 0.82rem;
    color: #6b7f97;
}

@keyframes al-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes al-grid-drift {
    from { transform: translateY(0); }
    to { transform: translateY(48px); }
}

@keyframes al-orb {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-24px, -18px) scale(1.08); }
}

@media (max-width: 900px) {
    .al-shell {
        grid-template-columns: 1fr;
    }

    .al-visual {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--al-line);
        padding-bottom: 28px;
    }

    .al-visual-copy {
        padding: 20px 0 8px;
    }

    .al-visual-copy h1 {
        font-size: 1.65rem;
    }

    .al-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .al-panel {
        padding-top: 28px;
        padding-bottom: 40px;
    }
}

@media (max-width: 520px) {
    .al-metrics {
        grid-template-columns: 1fr;
    }

    .al-visual-copy p {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .al-brand,
    .al-visual-copy,
    .al-metrics,
    .al-panel,
    .al-visual::before,
    .al-visual::after {
        animation: none;
    }
}
