:root {
    --auth-ink: #162033;
    --auth-muted: #667085;
    --auth-line: #dfe6ef;
    --auth-panel: #ffffff;
    --auth-bg: #f4f7fb;
    --auth-blue: #245fd6;
    --auth-green: #11845b;
    --auth-gold: #b7791f;
    --auth-shadow: 0 22px 54px rgba(22, 32, 51, 0.12);
}

.splash-body {
    min-height: 100vh;
    margin: 0;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(10, 20, 35, 0.94), rgba(10, 20, 35, 0.62)),
        url('/images/background.jpg') center / cover no-repeat;
    font-family: Inter, Segoe UI, system-ui, sans-serif;
}

.splash-shell {
    min-height: 100vh;
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: center;
    gap: 44px;
    padding: 44px 0;
}

.splash-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    line-height: 0.98;
    font-weight: 850;
    letter-spacing: 0;
}

.brand-lockup,
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 850;
}

.brand-lockup img,
.auth-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
}

.splash-kicker,
.auth-kicker {
    margin: 34px 0 12px;
    color: #9fb9de;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.splash-copy {
    max-width: 660px;
    margin: 20px 0 0;
    color: #dbe5f1;
    font-size: 1.04rem;
    line-height: 1.75;
}

.splash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.splash-button,
.continue-link,
.auth-submit {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 850;
    text-decoration: none;
}

.splash-button.primary,
.auth-submit {
    color: #ffffff;
    background: var(--auth-blue);
}

.splash-button.secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.splash-button:hover,
.continue-link:hover,
.auth-submit:hover {
    color: #ffffff;
    background: #1d4ed8;
}

.splash-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
}

.splash-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #f8fbff;
    font-weight: 850;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #35c486;
    box-shadow: 0 0 0 6px rgba(53, 196, 134, 0.18);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.module-grid div {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
}

.module-grid strong {
    font-size: 1rem;
}

.module-grid span {
    color: #c5d4e7;
    font-size: 0.88rem;
}

.continue-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
    color: #102033;
    background: #ffffff;
    text-align: center;
    white-space: normal;
}

.continue-link:hover {
    color: #ffffff;
}

.auth-shell {
    width: min(1120px, calc(100vw - 32px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
    gap: 36px;
    align-items: center;
    padding: 42px 0 64px;
    color: var(--auth-ink);
}

.auth-intro {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(16, 32, 51, 0.92), rgba(16, 32, 51, 0.68)),
        url('/images/background.jpg') center / cover no-repeat;
    box-shadow: var(--auth-shadow);
}

.auth-intro .auth-kicker {
    color: #9fb9de;
}

.auth-intro h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0;
}

.auth-intro p {
    max-width: 560px;
    margin: 18px 0 0;
    color: #dbe5f1;
    line-height: 1.75;
}

.auth-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.auth-stats span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.86rem;
    font-weight: 750;
}

.auth-card {
    padding: 30px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: var(--auth-panel);
    box-shadow: var(--auth-shadow);
}

.auth-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.auth-card .auth-kicker {
    margin: 0 0 7px;
    color: var(--auth-muted);
}

.auth-card h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 850;
    letter-spacing: 0;
}

.back-link,
.field-label-row a,
.auth-footer-row a {
    color: var(--auth-blue);
    font-weight: 750;
    text-decoration: none;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-group label,
.remember-row {
    color: #344054;
    font-size: 0.92rem;
    font-weight: 750;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field-label-row a {
    font-size: 0.86rem;
}

.auth-form .form-control {
    min-height: 48px;
    border: 1px solid #cfd8e4;
    border-radius: 8px;
    box-shadow: none;
}

.auth-form .form-control:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 4px rgba(36, 95, 214, 0.12);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.remember-row input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.auth-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
}

.auth-footer-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    color: var(--auth-muted);
    font-size: 0.92rem;
}

.validation-summary ul {
    margin-bottom: 0;
    padding-left: 18px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--auth-muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--auth-line);
}

.external-login-list {
    display: grid;
    gap: 10px;
}

.external-login-list button {
    min-height: 44px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    color: var(--auth-ink);
    background: #f8fafc;
    font-weight: 800;
}

.external-login-list button:hover {
    border-color: rgba(36, 95, 214, 0.4);
    background: #ffffff;
}

@media (max-width: 980px) {
    .splash-shell,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .splash-panel {
        order: 2;
    }

    .auth-intro {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .splash-shell,
    .auth-shell {
        width: min(100% - 20px, 620px);
        padding: 20px 0 36px;
    }

    .splash-hero h1,
    .auth-intro h1 {
        font-size: 2.45rem;
    }

    .splash-actions,
    .auth-footer-row {
        flex-direction: column;
    }

    .splash-button,
    .auth-footer-row a {
        width: 100%;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .auth-intro,
    .auth-card,
    .splash-panel {
        padding: 22px;
    }

    .auth-card-header,
    .field-label-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
