/* Shared staff auth pages — login, forgot password, reset password */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--brand-button-bg, #1f4ea7) 8%, #f8fafc) 0%,
        #f1f5f9 45%,
        #f8fafc 100%
    );
    padding: 1.5rem 1rem 2.5rem;
    font-family: var(--brand-font-family, 'Poppins', ui-sans-serif, system-ui, sans-serif);
}

.auth-page__shell {
    max-width: 440px;
    margin: 0 auto;
}

.auth-page__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.auth-page__brand {
    text-decoration: none;
    color: inherit;
}

.auth-page__brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-shell-button-bg, var(--brand-sidebar-bg, var(--brand-accent, #4caf50)));
    margin: 0;
    line-height: 1.2;
}

.auth-page__brand-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0.15rem 0 0;
}

.auth-page__home-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-shell-button-text, var(--brand-text-light, #ffffff));
    text-decoration: none;
    padding: 0.35rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--brand-shell-button-bg, var(--brand-sidebar-bg, var(--brand-accent, #4caf50)));
}

.auth-page__home-link:hover {
    color: var(--brand-shell-button-text, var(--brand-text-light, #ffffff));
    background: color-mix(
        in srgb,
        var(--brand-shell-button-bg, var(--brand-sidebar-bg, var(--brand-accent, #4caf50))) 85%,
        #000000
    );
    border-color: transparent;
}

.auth-page__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    padding: 1.5rem 1.35rem 1.35rem;
}

.auth-page__logo-wrap {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-page__logo {
    max-width: 160px;
    width: 100%;
    height: auto;
}

.auth-page__hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-page__hero h1 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.35rem;
}

.auth-page__hero p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-page__alert {
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.auth-page__field {
    margin-bottom: 0.85rem;
}

.auth-page__field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.auth-page__field .form-control {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
}

.auth-page__field .form-control:focus {
    border-color: var(--brand-button-bg, #1f4ea7);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-button-bg, #1f4ea7) 12%, transparent);
}

.auth-page__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.25rem 0 1rem;
}

.auth-page__remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
}

.auth-page__remember input {
    margin: 0;
}

.auth-page__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-button-bg, #1f4ea7);
    text-decoration: none;
}

.auth-page__link:hover {
    text-decoration: underline;
}

.auth-page__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.auth-page__btn--primary {
    background: var(--brand-shell-button-bg, var(--brand-auth-signin-bg, var(--brand-sidebar-bg, #4caf50)));
    color: var(--brand-shell-button-text, var(--brand-auth-signin-text, #ffffff));
}

.auth-page__btn--primary:hover {
    background: color-mix(
        in srgb,
        var(--brand-shell-button-bg, var(--brand-auth-signin-bg, var(--brand-sidebar-bg, #4caf50))) 85%,
        #000000
    );
    color: var(--brand-shell-button-text, var(--brand-auth-signin-text, #ffffff));
}

.auth-page__btn--outline {
    background: #fff;
    color: var(--brand-button-bg, #1f4ea7);
    border: 2px solid color-mix(in srgb, var(--brand-button-bg, #1f4ea7) 35%, #cbd5e1);
    margin-top: 0.65rem;
}

.auth-page__btn--outline:hover {
    background: color-mix(in srgb, var(--brand-button-bg, #1f4ea7) 6%, #fff);
}

.auth-page__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0 0.85rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-page__divider::before,
.auth-page__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-page__footer-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #64748b;
}

.auth-page__footer-note a {
    color: var(--brand-button-bg, #1f4ea7);
    font-weight: 600;
    text-decoration: none;
}

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

@media (max-width: 480px) {
    .auth-page__card {
        padding: 1.25rem 1rem;
    }

    .auth-page__hero h1 {
        font-size: 1.3rem;
    }
}
