:root {
    --auth-ink: #172433;
    --auth-blue: #1d5f99;
    --auth-blue-dark: #174a78;
    --auth-line: #d9e2ea;
    --auth-panel: #ffffff;
    --auth-surface: #f5f7fa;
    --auth-surface-strong: #edf2f6;
    --auth-muted: #667789;
    --auth-soft: #eef4f8;
    --auth-gold: #b58a3a;
    --auth-danger: #b84242;
}

body.auth-page {
    align-items: stretch;
    background: #0a2a5e;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 32px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(380px, 440px);
    margin: auto;
    max-width: 1060px;
    min-height: min(660px, calc(100vh - 64px));
    width: 100%;
}

.auth-context,
.auth-panel {
    border: 1px solid var(--auth-line);
}

.auth-context {
    background: #f7fafc;
    border-right: 0;
    color: var(--auth-ink);
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.auth-brand {
    align-items: flex-start;
    display: flex;
}

.auth-brand-copy {
    border-bottom: 1px solid var(--auth-line);
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 560px;
    padding-bottom: 28px;
    width: 100%;
}

.auth-brand-logo {
    display: block;
    height: auto;
    max-width: 220px;
    width: 220px;
}

.auth-eyebrow,
.auth-panel-kicker,
.route-label,
.route-code,
.auth-ops-grid span,
.auth-context-footer,
.auth-support {
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-eyebrow {
    color: var(--auth-muted);
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-brand h1 {
    color: var(--auth-ink);
    font-size: 33px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 8px;
}

.auth-brand p {
    color: var(--auth-muted);
    border-left: 3px solid var(--auth-blue);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    max-width: 470px;
    padding-left: 16px;
}

.auth-route-card {
    background: var(--auth-panel);
    border: 1px solid var(--auth-line);
    margin-top: auto;
    max-width: 520px;
    padding: 24px;
}

.route-label {
    border-bottom: 1px solid var(--auth-line);
    color: var(--auth-blue-dark);
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.asset-route {
    list-style: none;
    margin: 0;
    padding: 0;
}

.asset-route li {
    align-items: center;
    display: grid;
    column-gap: 14px;
    grid-template-columns: 14px 82px 1fr;
    min-height: 42px;
    position: relative;
}

.asset-route li::before {
    background: var(--auth-gold);
    border: 3px solid #f5e8cd;
    border-radius: 50%;
    content: "";
    grid-column: 1;
    height: 14px;
    width: 14px;
}

.asset-route li:not(:last-child)::after {
    background: #d3c4a5;
    content: "";
    height: calc(100% - 14px);
    left: 6px;
    position: absolute;
    top: 28px;
    width: 1px;
}

.asset-route .route-code {
    color: var(--auth-muted);
    font-size: 11px;
    font-weight: 800;
}

.asset-route strong {
    color: var(--auth-ink);
    font-size: 15px;
    font-weight: 700;
}

.auth-ops-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
    max-width: 520px;
}

.auth-ops-grid div {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--auth-line);
    padding: 14px;
}

.auth-ops-grid span {
    color: var(--auth-muted);
    display: block;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-ops-grid strong {
    color: var(--auth-ink);
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.auth-context-footer {
    color: var(--auth-muted);
    display: flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: space-between;
    margin-top: 30px;
    max-width: 520px;
}

.auth-panel {
    background: var(--auth-panel);
    box-shadow: 0 18px 46px rgba(23, 36, 51, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 46px;
}

.auth-header {
    border-bottom: 1px solid var(--auth-line);
    margin-bottom: 28px;
    padding-bottom: 24px;
}

.auth-panel-kicker {
    color: var(--auth-blue);
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-header h2 {
    color: var(--auth-ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 8px;
}

.auth-header p {
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.auth-form {
    margin: 0;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-panel .form-label {
    color: var(--auth-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 7px;
}

.auth-panel .form-control {
    background-color: #fbfcfd;
    border: 1px solid #cfd9e3;
    border-radius: 6px;
    color: var(--auth-ink);
    font-size: 14px;
    height: 48px;
    padding: 11px 13px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.auth-panel .form-control::placeholder {
    color: #96a4b2;
}

.auth-panel .form-control:hover {
    border-color: #b8c6d4;
}

.auth-panel .form-control:focus {
    background-color: #ffffff;
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(29, 95, 153, 0.16);
}

.auth-actions {
    margin-top: 24px;
}

.btn-login {
    background: var(--auth-blue);
    border: 1px solid var(--auth-blue);
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    height: 48px;
    width: 100%;
}

.btn-login:hover,
.btn-login:focus {
    background: var(--auth-blue-dark);
    border-color: var(--auth-blue-dark);
    box-shadow: 0 0 0 3px rgba(29, 95, 153, 0.16);
}

.auth-use-note {
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 18px 0 0;
}

.auth-validation {
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.auth-validation.validation-summary-valid {
    display: none;
}

.auth-panel .text-danger,
.auth-panel .field-validation-error {
    color: var(--auth-danger) !important;
    display: block;
    font-size: 12px;
    margin-top: 6px;
}

.auth-support {
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    display: flex;
    font-size: 10px;
    font-weight: 700;
    gap: 14px;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 18px;
}

@media (max-width: 991.98px) {
    body.auth-page {
        align-items: flex-start;
        padding: 22px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
        min-height: auto;
    }

    .auth-context {
        border-right: 1px solid var(--auth-line);
        min-height: 0;
        order: 2;
        padding: 30px;
    }

    .auth-route-card {
        margin-top: 34px;
    }

    .auth-panel {
        order: 1;
        padding: 34px 30px;
    }
}

@media (max-width: 575.98px) {
    body.auth-page {
        padding: 14px;
    }

    .auth-context {
        padding: 24px;
    }

    .auth-brand {
        align-items: flex-start;
    }

    .auth-brand-copy {
        gap: 16px;
        padding-bottom: 24px;
    }

    .auth-brand-logo {
        max-width: 190px;
        width: 64%;
    }

    .auth-brand h1 {
        font-size: 28px;
    }

    .auth-route-card {
        padding: 20px;
    }

    .asset-route li {
        grid-template-columns: 14px 72px 1fr;
    }

    .auth-ops-grid {
        grid-template-columns: 1fr;
    }

    .auth-context-footer,
    .auth-support {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .auth-panel {
        padding: 28px 22px;
    }

    .auth-header h2 {
        font-size: 24px;
    }
}
