/* Login remains in the page flow so the sidebar offset is applied only once. */
.auth-login-page .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 70px) !important;
    min-height: calc(100dvh - 70px) !important;
    padding-bottom: 0;
}

.auth-login-page .container-fluid {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 24px 30px;
}

.auth-login-page .page-titles {
    display: none;
}

.auth-login-page .fos-user-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.auth-login-page .page-wrapper > .footer {
    position: static;
    flex-shrink: 0;
}

.auth-login {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 16px 0;
    color: #536674;
}

.auth-login .auth-login-card {
    width: 100%;
    max-width: 440px;
    margin: 0;
    border: 1px solid #dce6ed;
    border-top: 3px solid #00889b;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(39, 66, 86, 0.08);
}

.auth-login-card .card-body {
    padding: 32px;
}

.login-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    height: 52px;
    border-radius: 12px;
    background: #e6f4f5;
    color: #00798a;
    font-size: 24px;
}

.login-kicker {
    margin: 0 0 4px;
    color: #657c8b;
    font-size: 12px;
    line-height: 1.5;
}

.login-heading h1 {
    margin: 0;
    color: #294861;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
}

.login-intro {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.7;
}

.login-error {
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.login-field {
    margin-bottom: 20px;
}

.auth-login .login-field > label {
    display: block;
    margin-bottom: 8px;
    color: #334f62 !important;
    font-size: 13px;
    font-weight: 500;
}

.auth-login .form-control {
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #cbdbe5;
    border-radius: 6px;
    background: #fff;
    color: #294861;
    font-size: 14px;
}

.auth-login .form-control:focus {
    border-color: #00798a;
    box-shadow: 0 0 0 3px rgba(0, 136, 155, 0.12);
}

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

.auth-login .login-password-field .form-control {
    padding-right: 54px;
}

.login-password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: transparent;
    color: #657c8b;
    cursor: pointer;
}

.login-password-toggle[hidden] {
    display: none;
}

.login-password-toggle:hover,
.login-password-toggle[aria-pressed="true"] {
    background: #e6f4f5;
    color: #00798a;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 24px;
    font-size: 12px;
    line-height: 1.6;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-login .login-remember input[type="checkbox"] {
    position: static;
    left: auto;
    width: 16px;
    height: 16px;
    margin: 0;
    opacity: 1;
    accent-color: #00798a;
    cursor: pointer;
}

.auth-login .login-remember label {
    height: auto;
    margin: 0;
    padding: 0;
    color: #536674 !important;
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}

.auth-login .login-remember label::before,
.auth-login .login-remember label::after {
    display: none;
}

.auth-login a {
    color: #00798a;
}

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

.auth-login .login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid #00798a;
    border-radius: 6px;
    background: #00798a;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: none;
}

.auth-login .login-submit:hover {
    border-color: #006575;
    background: #006575;
}

.login-card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf1f5;
    text-align: center;
    font-size: 12px;
}

.login-turnstile {
    margin-bottom: 20px;
}

.login-turnstile > [data-turnstile] {
    width: 100%;
    text-align: center;
}

.login-verification-status {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.6;
}

.auth-login .login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-login a:focus-visible,
.auth-login button:focus-visible,
.auth-login input[type="checkbox"]:focus-visible {
    outline: 2px solid #00798a;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .auth-login-page .page-wrapper {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    .auth-login-page .container-fluid {
        padding: 24px 20px;
    }

    .auth-login-card .card-body {
        padding: 24px;
    }

    .login-heading h1 {
        font-size: 22px;
    }
}
