:root {
    --login-navy: #102a43;
    --login-blue: #175cd3;
    --login-red: #d92d20;
    --login-green: #087443;
    --login-border: #d9e0e7;
    --login-muted: #627386;
}

* {
    box-sizing: border-box;
}

body.admin-login-page {
    min-height: 100vh;
    margin: 0;
    background: #eef2f6;
    color: #172033;
    font-family: 'Inter', sans-serif;
}

.admin-login-page form {
    min-height: 100vh;
}

.login-home-link {
    position: fixed;
    top: 22px;
    left: 26px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .92);
    color: #334e68;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .1);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.login-home-link:hover {
    color: var(--login-blue);
}

.login-shell {
    display: grid;
    width: 100%;
    min-height: 100vh;
    grid-template-columns: minmax(360px, 42%) minmax(480px, 58%);
}

.identity-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 90px 64px 42px;
    background: var(--login-navy);
    color: #ffffff;
}

.identity-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-brand-logo {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border: 4px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: #ffffff;
    object-fit: cover;
}

.identity-lockup > div {
    min-width: 0;
}

.identity-district {
    display: block;
    margin-bottom: 3px;
    color: #b9c9d8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.identity-lockup strong {
    display: block;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
}

.identity-copy {
    max-width: 520px;
    margin-top: 90px;
}

.official-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #7dd3a7;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.identity-copy h1 {
    max-width: 480px;
    margin: 0;
    color: #ffffff;
    font-size: 39px;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: 0;
}

.identity-copy p {
    max-width: 480px;
    margin: 18px 0 0;
    color: #c5d3df;
    font-size: 16px;
    line-height: 1.65;
}

.identity-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #9fb3c5;
    font-size: 12px;
    font-weight: 600;
}

.identity-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-panel {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 70px 48px;
    background: #ffffff;
}

.auth-container {
    width: min(100%, 440px);
}

.auth-heading {
    margin-bottom: 26px;
}

.auth-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--login-blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-heading h2 {
    margin: 0;
    color: var(--login-navy);
    font-size: 31px;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-heading p {
    margin: 7px 0 0;
    color: var(--login-muted);
    font-size: 14px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    border: 1px solid #f1b4af;
    border-radius: 7px;
    padding: 11px 13px;
    background: #fff1f0;
    color: #b42318;
    font-size: 13px;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #2d3b4f;
    font-size: 13px;
    font-weight: 700;
}

.input-shell {
    position: relative;
}

.input-shell > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    transform: translateY(-50%);
    color: #748397;
    pointer-events: none;
}

.input-shell .form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid #b8c4d1;
    border-radius: 7px;
    padding: 11px 14px 11px 42px;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.input-shell .form-control:focus {
    border-color: var(--login-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(23, 92, 211, .12);
}

.btn-login {
    width: 100%;
    min-height: 48px;
    margin-top: 5px;
    border: 1px solid var(--login-blue);
    border-radius: 7px;
    background: var(--login-blue);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-login:hover,
.btn-login:focus {
    border-color: #124cae;
    background: #124cae;
    transform: translateY(-1px);
}

.access-notice {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin-top: 19px;
    color: #748397;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.password-requirements {
    margin: -2px 0 18px;
    border-left: 3px solid var(--login-green);
    padding: 9px 12px;
    background: #f2f8f5;
    color: #40556a;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .identity-panel {
        min-height: auto;
        padding: 76px 28px 28px;
    }

    .identity-copy {
        margin-top: 36px;
    }

    .identity-copy h1 {
        font-size: 31px;
    }

    .identity-footer {
        margin-top: 38px;
    }

    .auth-panel {
        padding: 44px 24px 56px;
    }
}

@media (max-width: 479.98px) {
    .login-home-link {
        top: 14px;
        left: 14px;
    }

    .identity-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .login-brand-logo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .identity-lockup strong {
        font-size: 21px;
    }

    .identity-copy h1 {
        font-size: 27px;
    }

    .identity-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-panel {
        padding-right: 18px;
        padding-left: 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .btn-login,
    .login-home-link {
        transition: none;
    }
}
