/* login-page: full viewport height gradient background that centers content */
.login-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.12), rgba(100, 181, 246, 0.25));
}

/* login-page--recovery: gives forgot password flow a little more breathing room */
.login-page--recovery {
    padding: 80px 0;
}

/* login-page--reset: balances vertical rhythm for the multi-step reset form */
.login-page--reset {
    padding: 90px 0;
}

/* login-page--status: tailored spacing for confirmation and status messages */
.login-page--status {
    padding: 70px 0;
}

/* login-card: glass-like container with subtle shadow to draw focus */
.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 45px rgba(21, 101, 192, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* login-card:hover: gentle elevation on hover for interactivity */
.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(21, 101, 192, 0.18);
}

/* login-card__header: arranges icon, title, and subtitle vertically */
.login-card__header {
    margin-bottom: 30px;
}

/* login-card--recovery: keeps typography spacing relaxed for single-field form */
.login-card--recovery {
    padding: 36px 32px;
}

/* login-card--reset: increases padding to comfortably host three fields */
.login-card--reset {
    padding: 42px 38px;
}

/* login-card--status: centers copy for confirmation states */
.login-card--status {
    padding: 40px 36px;
}

/* login-card__icon: circular icon container emphasising security visuals */
.login-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.12);
    color: #1565c0;
    font-size: 26px;
    margin-bottom: 14px;
}

/* login-card__icon--recovery: swap to green accent representing success */
.login-card__icon--recovery {
    background: rgba(76, 175, 80, 0.14);
    color: #2e7d32;
}

/* login-card__icon--reset: purple accent reinforcing credential security */
.login-card__icon--reset {
    background: rgba(123, 97, 255, 0.14);
    color: #5e35b1;
}

/* login-card__icon--success: teal accent used on confirmation messages */
.login-card__icon--success {
    background: rgba(0, 150, 136, 0.14);
    color: #00897b;
}

/* login-card__title: bold heading for the form */
.login-card__title {
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 6px;
}

/* login-card__subtitle: supportive text guiding the user */
.login-card__subtitle {
    color: #546e7a;
    font-size: 15px;
    margin-bottom: 0;
}

/* login-form: resets spacing for compact layout */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* login-form__validation: styled validation summary matching accent color */
.login-form__validation {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
}

/* recovery-form: flex column layout mirroring login form spacing */
.recovery-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* recovery-form__validation: reuse danger styling for consistency */
.recovery-form__validation {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
}

/* reset-form: vertical stack mirroring login form while supporting extra helper */
.reset-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* reset-form__validation: inherits the danger treatment for consistency */
.reset-form__validation {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
}

/* form-control--floating: custom input style with focus animation */
.form-control--floating {
    border-radius: 12px;
    border: 1px solid #cfd8dc;
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

/* form-control--floating: highlight border on focus */
.form-control--floating:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

/* password-field: relative wrapper that positions toggle icon inside the input */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

/* password-field__input: extra right padding so text doesn't collide with toggle button */
.password-field__input {
    padding-right: 48px;
}

/* password-field__toggle: circular ghost button sitting on the right of the input */
.password-field__toggle {
    position: absolute;
    right: 12px;
    height: 34px;
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

/* password-field__toggle:hover: subtle lift and deeper accent color */
.password-field__toggle:hover {
    background: rgba(30, 136, 229, 0.18);
    color: #0d47a1;
    transform: translateY(-1px);
}

/* password-field__toggle: focus indicator ensures accessibility */
.password-field__toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.25);
}

/* password-field--revealed .password-field__toggle: communicate active reveal state */
.password-field--revealed .password-field__toggle {
    background: rgba(30, 136, 229, 0.22);
    color: #0d47a1;
}

/* password-field--revealed .password-field__input: emphasise visibility mode through border accent */
.password-field--revealed .password-field__input {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.18);
}

/* form-label: ensures labels stay legible when floating */
.form-label {
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 8px;
}

/* field-validation: consistent error helper text styling */
.field-validation {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 6px;
}

/* recovery-form__helper: unobtrusive helper text with icon */
.recovery-form__helper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #546e7a;
    font-size: 14px;
    margin: -6px 0 0;
}

/* recovery-form__actions: stacks primary and secondary actions */
.recovery-form__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* reset-form__helper: hint reminding users about password strength */
.reset-form__helper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #546e7a;
    font-size: 14px;
    margin: -6px 0 0;
}

/* reset-form__actions: columns that align button and secondary link */
.reset-form__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* login-card__footer: spaces remember me and submit button */
.login-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* remember-me: groups checkbox with its label for readability */
.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #455a64;
}

/* remember-me__checkbox: enlarges checkbox for touch targets */
.remember-me__checkbox {
    width: 18px;
    height: 18px;
}

/* remember-me__label: makes label clickable with pointer cursor */
.remember-me__label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* login-card__submit: gradient button for primary action */
.login-card__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e88e5, #1976d2);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* login-card__submit--recovery: stretch button to full width for clarity */
.login-card__submit--recovery {
    width: 100%;
    justify-content: center;
}

/* login-card__submit--reset: full-width treatment specific to reset CTA */
.login-card__submit--reset {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #5e35b1, #3949ab);
}

/* login-card__submit--status: button-styled link for confirmation navigation */
.login-card__submit--status {
    width: 100%;
    justify-content: center;
}

/* login-card__submit:hover: adds depth feedback */
.login-card__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(30, 136, 229, 0.35);
}

/* login-card__submit: focus state for accessibility */
.login-card__submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.4);
}

/* login-card__links: stacked secondary navigation */
.login-card__links {
    margin-top: 8px;
    text-align: center;
}

/* status-card__title: bold heading for confirmation messages */
.status-card__title {
    font-weight: 700;
    color: #00695c;
    margin-bottom: 8px;
}

/* status-card__subtitle: supportive copy explaining the next step */
.status-card__subtitle {
    color: #546e7a;
    font-size: 15px;
    margin-bottom: 18px;
}

/* status-card__helper: subtle reminder enhancing clarity */
.status-card__helper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #607d8b;
    font-size: 14px;
    margin-bottom: 28px;
}

/* status-card__actions: vertical stack aligning button style links */
.status-card__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* login-card__link: subtle link styling with hover effect */
.login-card__link {
    color: #1e88e5;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* login-card__link:hover: highlight supportive actions */
.login-card__link:hover {
    color: #0d47a1;
    text-decoration: none;
}

/* login-card__link--back: inline-flex layout that aligns icon and label */
.login-card__link--back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* responsive adjustments: ensure spacing on small screens */
@media (max-width: 575.98px) {
    .login-page {
        padding: 40px 0;
    }

    /* login-page--recovery: harmonize spacing on small devices */
    .login-page--recovery {
        padding: 50px 0;
    }

    /* login-page--reset/login-page--status: align spacing with reduced viewport */
    .login-page--reset,
    .login-page--status {
        padding: 60px 0;
    }

    .login-card {
        padding: 30px 24px;
    }

    /* login-card--reset/login-card--status: ensure comfortable padding on phones */
    .login-card--reset,
    .login-card--status {
        padding: 32px 24px;
    }

    .login-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .login-card__submit {
        width: 100%;
        justify-content: center;
    }

    /* recovery-form__actions/reset-form__actions/status-card__actions: tighten gaps on mobile */
    .recovery-form__actions,
    .reset-form__actions,
    .status-card__actions {
        gap: 10px;
    }
}
