﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --panel-line: rgba(148, 163, 184, .18);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --white: #ffffff;
    --blue: #2563eb;
    --blue-soft: #38bdf8;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --input: #0b1220;
    --border: #1e293b;
    --shadow: 0 30px 90px rgba(0, 0, 0, .45);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 14px;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 12% 10%, rgba(37, 99, 235, .35), transparent 34%), radial-gradient(circle at 88% 88%, rgba(56, 189, 248, .15), transparent 30%), linear-gradient(135deg, #020617 0%, #0f172a 50%, #111827 100%);
    color: var(--text);
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.login-shell {
    width: min(100%, 1320px);
    max-width: calc(100vw - 44px);
    min-height: calc(100vh - 44px);
    max-height: calc(100vh - 44px);
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(15, 23, 42, .72);
    border: 1px solid var(--panel-line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

/* LEFT */
.login-left {
    position: relative;
    padding: 38px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(37, 99, 235, .20), rgba(15, 23, 42, .88)), linear-gradient(180deg, #0f172a, #020617);
    overflow: hidden;
}

    .login-left::before {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        top: -130px;
        right: -110px;
        border-radius: 999px;
        background: rgba(56, 189, 248, .18);
        filter: blur(4px);
    }

    .login-left::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        bottom: -130px;
        left: -90px;
        border-radius: 999px;
        background: rgba(37, 99, 235, .20);
        filter: blur(6px);
    }

.brand-area,
.analytics-panel,
.brand-footer {
    position: relative;
    z-index: 2;
}

.brand-area {
    max-width: 560px;
}

.brand-logo {
    width: 125px;
    max-width: 125px;
    height: auto;
    display: block;
    margin-bottom: 28px;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .35)) brightness(1.18);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .16);
    border: 1px solid rgba(96, 165, 250, .30);
    color: #bfdbfe;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.brand-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 2.5vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 800;
    max-width: 460px;
}

.brand-subtitle {
    max-width: 520px;
    margin: 0;
    color: rgba(226, 232, 240, .78);
    font-size: .94rem;
    line-height: 1.65;
}

.brand-features {
    margin-top: 24px;
    display: grid;
    gap: 10px;
    max-width: 560px;
}

.feature-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
    padding: 11px 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
}

    .feature-item span {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: rgba(37, 99, 235, .22);
        color: #93c5fd;
        font-size: .78rem;
        font-weight: 800;
    }

    .feature-item p {
        margin: 0;
        color: rgba(226, 232, 240, .78);
        line-height: 1.38;
        font-size: .84rem;
    }

/* ANALYTICS */
.analytics-panel {
    margin-top: 22px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(2, 6, 23, .44);
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

    .analytics-header span {
        display: block;
        color: var(--muted);
        font-size: .78rem;
        margin-bottom: 4px;
    }

    .analytics-header strong {
        font-size: 1rem;
    }

.live-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .14);
    border: 1px solid rgba(34, 197, 94, .28);
    color: #86efac;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.kpi-card {
    padding: 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .08);
}

    .kpi-card strong {
        display: block;
        font-size: 1.3rem;
        letter-spacing: -.04em;
    }

    .kpi-card span {
        display: block;
        margin-top: 4px;
        color: var(--muted);
        font-size: .7rem;
    }

.chart-card {
    padding: 15px;
    border-radius: 20px;
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .15);
}

.chart-title {
    display: flex;
    justify-content: space-between;
    color: rgba(226, 232, 240, .88);
    font-size: .84rem;
    margin-bottom: 12px;
}

    .chart-title small {
        color: var(--muted-2);
    }

.chart-bars {
    height: 105px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: end;
}

.bar-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
    text-align: center;
}

.bar {
    width: 100%;
    min-height: 18px;
    border-radius: 14px 14px 6px 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

    .bar.green {
        background: linear-gradient(180deg, #4ade80, #15803d);
    }

    .bar.blue {
        background: linear-gradient(180deg, #38bdf8, #2563eb);
    }

    .bar.amber {
        background: linear-gradient(180deg, #fbbf24, #b45309);
    }

    .bar.red {
        background: linear-gradient(180deg, #fb7185, #be123c);
    }

.bar-wrap span {
    color: var(--muted);
    font-size: .7rem;
}

.brand-footer {
    margin-top: 18px;
    color: rgba(226, 232, 240, .48);
    font-size: .82rem;
}

/* RIGHT */
.login-right {
    padding: 42px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .10), transparent 32%), rgba(248, 250, 252, .96);
    overflow: hidden;
}

.login-card {
    width: min(100%, 620px);
    max-width: 620px;
    padding: 44px 56px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}

.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

    .mobile-logo img {
        width: 120px;
        max-width: 120px;
        height: auto;
    }

.login-heading {
    margin-bottom: 28px;
}

.login-badge {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.login-heading h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.login-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: .94rem;
    max-width: 440px;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #334155;
        font-size: .88rem;
        font-weight: 700;
    }

.input-box {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: .88rem;
    z-index: 2;
}

.input-control {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 48px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    font-size: .96rem;
    transition: all .22s ease;
}

    .input-control:focus {
        background: #ffffff;
        border-color: rgba(37, 99, 235, .62);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    }

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 6px 0 18px;
    font-size: .88rem;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

    .remember-option input {
        width: 16px;
        height: 16px;
        accent-color: var(--blue);
    }

.login-options a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

    .login-options a:hover {
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    height: 54px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: .96rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(37, 99, 235, .28);
    transition: all .22s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 40px rgba(37, 99, 235, .34);
    }

.login-note {
    margin: 18px 0 0;
    color: #ffffff;
    text-align: center;
    font-size: .82rem;
    line-height: 1.5;
    background: #1d4ed8;
}

/* Validation */
.validation-summary-errors {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: .9rem;
}

    .validation-summary-errors ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

.field-validation-error {
    display: block;
    margin-top: 7px;
    color: #dc2626;
    font-size: .84rem;
}

/* Desktop height adjustments */
@media (max-height: 800px) and (min-width: 1100px) {
    .login-wrapper {
        padding: 16px;
    }

    .login-shell {
        width: min(100%, 1280px);
        max-width: calc(100vw - 32px);
        min-height: calc(100vh - 32px);
        max-height: calc(100vh - 32px);
    }

    .login-left {
        padding: 30px 38px;
    }

    .brand-logo {
        width: 112px;
        max-width: 112px;
        margin-bottom: 20px;
    }

    .brand-title {
        font-size: clamp(1.85rem, 2.4vw, 2.55rem);
        margin-bottom: 10px;
    }

    .brand-subtitle {
        font-size: .86rem;
        line-height: 1.5;
    }

    .brand-features {
        margin-top: 16px;
        gap: 8px;
    }

    .feature-item {
        padding: 9px 11px;
    }

        .feature-item p {
            font-size: .78rem;
        }

    .analytics-panel {
        margin-top: 14px;
        padding: 14px;
    }

    .chart-bars {
        height: 82px;
    }

    .login-right {
        padding: 32px 54px;
    }

    .login-card {
        max-width: 600px;
        padding: 34px 50px;
    }

    .input-control,
    .btn-login {
        height: 50px;
    }
}

.login-note a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

    .login-note a:hover {
        text-decoration: underline;
    }
.login-card a,
.login-card button,
.login-card .btn-login {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
