.identity-page {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 80px);
    align-items: center;
    justify-content: center;
    padding: 32px 12px 48px;
}

.identity-card {
    width: 100%;
    max-width: 430px;
    padding: 30px;
    background: #fff;
    border: 1px solid #dbe5ef;
    border-top: 6px solid #002c53;
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(0, 44, 83, 0.12);
}

.identity-card.wide {
    max-width: 470px;
}

.identity-brand {
    margin-bottom: 24px;
    text-align: center;
}

.identity-brand img {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 17px;
    object-fit: cover;
}

.identity-login-card .identity-brand img {
    width: 88px;
    height: 88px;
    border-radius: 19px;
}

.identity-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #52708d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.identity-brand h1,
.identity-result h1 {
    margin: 0;
    color: #102a43;
    font-size: 1.35rem;
    font-weight: 850;
}

.identity-brand p,
.identity-result > p {
    margin: 7px 0 0;
    color: #6b7f94;
    font-size: 0.82rem;
    line-height: 1.5;
}

.identity-form {
    display: grid;
    gap: 15px;
}

.identity-form .form-floating > .form-control {
    min-height: 54px;
    color: #172a43;
    border-color: #cdd9e5;
    border-radius: 11px;
    font-size: 0.88rem;
}

.identity-form .form-floating > .form-control:focus {
    border-color: #4b7ba6;
    box-shadow: 0 0 0 0.2rem rgba(0, 72, 125, 0.12);
}

.identity-form .form-floating > label {
    color: #63778c;
    font-size: 0.84rem;
}

.identity-form .text-danger {
    display: block;
    margin-top: 5px;
    font-size: 0.73rem;
}

.identity-password-field {
    position: relative;
}

.identity-password-field .form-control {
    padding-right: 48px;
}

.identity-password-toggle {
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 7px;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #536c84;
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.identity-password-toggle:hover,
.identity-password-toggle:focus {
    color: #002c53;
    background: #edf4fa;
}

.identity-caps-lock {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -7px 0 0;
    color: #986217;
    font-size: 0.72rem;
    font-weight: 700;
}

.identity-caps-lock[hidden] {
    display: none;
}

.identity-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #526b83;
    font-size: 0.78rem;
}

.identity-options .form-check {
    min-height: auto;
    margin: 0;
}

.identity-options a,
.identity-back-link,
.identity-support-link {
    color: #07558a;
    font-weight: 700;
    text-decoration: none;
}

.identity-options a:hover,
.identity-back-link:hover,
.identity-support-link:hover {
    color: #002c53;
    text-decoration: underline;
}

.identity-primary,
.identity-secondary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.identity-primary {
    color: #fff;
    background: #002c53;
    border: 1px solid #002c53;
}

.identity-primary:hover,
.identity-primary:focus {
    color: #fff;
    background: #074876;
    border-color: #074876;
    transform: translateY(-1px);
}

.identity-primary:disabled {
    color: #d7e0e8;
    background: #47657f;
    border-color: #47657f;
    cursor: wait;
    transform: none;
}

.identity-secondary {
    color: #204d73;
    background: #f4f8fb;
    border: 1px solid #cad9e6;
}

.identity-secondary:hover,
.identity-secondary:focus {
    color: #002c53;
    background: #eaf2f8;
    border-color: #abc1d4;
}

.identity-back {
    margin-top: 18px;
    text-align: center;
    font-size: 0.78rem;
}

.identity-feedback {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 16px;
    padding: 12px 13px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.77rem;
    line-height: 1.45;
    text-align: left;
}

.identity-feedback.success {
    color: #16633d;
    background: #edf9f2;
    border-color: #bfe7ce;
}

.identity-feedback.error {
    color: #8f2d26;
    background: #fff4f2;
    border-color: #efc6c1;
}

.identity-feedback > i {
    margin-top: 1px;
    flex: 0 0 auto;
    font-size: 0.95rem;
}

.identity-feedback ul {
    margin: 0;
    padding-left: 18px;
}

.identity-feedback.validation-summary-valid {
    display: none;
}

.identity-result {
    text-align: center;
}

.identity-result-icon {
    display: inline-flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #177245;
    background: #edf9f2;
    border: 1px solid #bfe7ce;
    border-radius: 50%;
    font-size: 1.65rem;
}

.identity-result-icon.info {
    color: #07558a;
    background: #edf5fc;
    border-color: #c8dceb;
}

.identity-result-icon.error {
    color: #b42318;
    background: #fff0ee;
    border-color: #efc6c1;
}

.identity-result .identity-feedback {
    margin-top: 20px;
}

.identity-actions {
    display: grid;
    gap: 9px;
    margin-top: 22px;
}

.identity-notice {
    margin-top: 20px;
    padding: 14px;
    color: #405a72;
    background: #f5f8fb;
    border: 1px solid #dce6ef;
    border-radius: 11px;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: left;
}

.identity-notice strong {
    color: #173752;
}

.identity-notice.warning {
    color: #7b541a;
    background: #fff9eb;
    border-color: #f0ddb0;
}

.identity-notice.success {
    color: #16633d;
    background: #edf9f2;
    border-color: #bfe7ce;
}

@media (max-width: 575.98px) {
    .identity-page {
        min-height: auto;
        align-items: flex-start;
        padding: 18px 0 40px;
    }

    .identity-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .identity-brand {
        margin-bottom: 20px;
    }

    .identity-brand img {
        width: 68px;
        height: 68px;
    }

    .identity-login-card .identity-brand img {
        width: 78px;
        height: 78px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .identity-primary,
    .identity-secondary {
        transition: none;
    }
}
