.auth-login-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(89, 85, 209, 0.1), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 90%, rgba(0, 125, 83, 0.08), transparent 50%),
        linear-gradient(160deg, #f8f9fc 0%, #ffffff 48%, #f5f5fc 100%);
}

html[data-bs-theme="dark"] .auth-login-page {
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(89, 85, 209, 0.2), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 90%, rgba(0, 125, 83, 0.14), transparent 50%),
        linear-gradient(160deg, #181818 0%, #1e1e1e 48%, #15151c 100%);
}

.auth-login-page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-login-toolbar {
    position: fixed;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 20;
}

.auth-login-theme-btn {
    text-decoration: none;
}

.auth-login-shell {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1rem 1.5rem;
}

.auth-login-card {
    width: 100%;
    max-width: 26rem;
    padding: 2rem 1.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background-color: var(--bs-body-bg);
    box-shadow:
        0 1rem 2.5rem rgba(12, 36, 60, 0.08),
        0 0.25rem 0.75rem rgba(12, 36, 60, 0.04);
}

html[data-bs-theme="dark"] .auth-login-card {
    box-shadow:
        0 1rem 2.5rem rgba(0, 0, 0, 0.28),
        0 0.25rem 0.75rem rgba(0, 0, 0, 0.18);
}

.auth-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-login-logo {
    display: block;
    height: 3.25rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.auth-login-title {
    margin: 0 0 0.375rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--bs-heading-color);
    letter-spacing: -0.01em;
}

.auth-login-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--bs-secondary-color);
}

.auth-login-form .form-label {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bs-heading-color);
}

.auth-login-form .form-control {
    min-height: 3rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-radius: 0.5rem;
}

.auth-login-form .form-control::placeholder {
    color: rgba(var(--bs-secondary-color-rgb), 0.65);
    font-weight: 300;
}

.auth-login-form .form-control:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.45);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.12);
}

.auth-login-form .invalid-feedback {
    display: none;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 400;
}

.auth-login-form .form-control.is-invalid + .invalid-feedback,
.auth-login-form .auth-login-password:has(.form-control.is-invalid) + .invalid-feedback,
.auth-login-form .invalid-feedback:not(:empty) {
    display: block;
}

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

.auth-login-password .form-control {
    padding-left: 2.75rem;
    padding-right: 0.875rem;
}

.auth-login-toggle-password {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    right: auto;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--bs-secondary-color);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-login-toggle-password:hover,
.auth-login-toggle-password:focus-visible {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.06);
    outline: none;
}

.auth-login-toggle-password .icon-hide {
    display: none;
}

.auth-login-toggle-password.active .icon-show {
    display: none;
}

.auth-login-toggle-password.active .icon-hide {
    display: inline-flex;
}

.auth-login-remember .form-check-label {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--bs-heading-color);
}

.auth-login-submit {
    min-height: 3rem;
    font-size: 1.0625rem;
    font-weight: 500;
    border-radius: 0.5rem;
}

.auth-login-alert {
    margin-bottom: 1.25rem;
}

.auth-login-footer {
    flex-shrink: 0;
    padding: 1rem 1rem 1.5rem;
}

.auth-login-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
}

.auth-login-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.auth-login-footer-brand img {
    display: block;
    width: auto;
    max-height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.auth-login-footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-inline-start: 0.875rem;
    border-inline-start: 2px solid rgba(var(--bs-primary-rgb), 0.35);
}

.auth-login-footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--bs-heading-color);
}

@media (max-width: 575.98px) {
    .auth-login-shell {
        padding-top: 4rem;
    }

    .auth-login-card {
        padding: 1.5rem 1.25rem;
        border-radius: 0.875rem;
    }

    .auth-login-logo {
        height: 2.75rem;
    }

    .auth-login-footer-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .auth-login-footer-brand img {
        max-height: 36px;
    }

    .auth-login-footer-brand-copy {
        padding-inline-start: 0.625rem;
    }

    .auth-login-footer-brand-name {
        font-size: 0.9375rem;
    }
}
