/**
 * ============================================================
 * PENNY LEDGER
 * Stagecoach West, L.L.C.
 *
 * FILE: public/assets/css/login.css
 * FILE NUMBER: 099
 *
 * PURPOSE:
 * Customer login, mandatory MFA, SMS verification,
 * authenticator enrollment, and recovery codes.
 *
 * DESIGN:
 * Navy / Ivory / Champagne Gold
 * ============================================================
 */

/* ============================================================
   01. DESIGN VARIABLES
   ============================================================ */

:root {
    color-scheme: light;

    --pl-navy: #14263d;
    --pl-navy-dark: #0c192b;
    --pl-navy-light: #244d68;

    --pl-ivory: #faf8f3;
    --pl-ivory-dark: #f3f0e9;

    --pl-gold: #d8b46b;
    --pl-gold-dark: #b28b42;
    --pl-gold-light: #f4e6c4;

    --pl-white: #ffffff;

    --pl-text-primary: #19283a;
    --pl-text-secondary: #53657a;

    --pl-border: #e0e4e9;
    --pl-border-focus: #d8b46b;

    --pl-error: #b91c1c;
    --pl-error-background: #fef2f2;

    --pl-success: #166534;
    --pl-success-background: #f0fdf4;

    --pl-warning: #92400e;
    --pl-warning-background: #fffbeb;

    --pl-radius-small: 8px;
    --pl-radius-medium: 12px;
    --pl-radius-large: 20px;

    --pl-transition: 180ms ease-in-out;

    --pl-shadow-card:
        0 24px 70px rgba(12, 25, 43, 0.22);

    --pl-green-darkest: var(--pl-navy-dark);
    --pl-green-dark: var(--pl-navy);
    --pl-green-primary: var(--pl-navy);
    --pl-green-secondary: var(--pl-navy-light);
    --pl-green-light: var(--pl-gold-light);
    --pl-green-accent: var(--pl-gold);

    --pl-background: var(--pl-ivory);
}

/* ============================================================
   02. RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
}

body {
    min-height: 100vh;
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--pl-text-primary);

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(216, 180, 107, 0.13),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(36, 77, 104, 0.08),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            var(--pl-ivory),
            var(--pl-ivory-dark)
        );

    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

/* ============================================================
   03. LOGIN PAGE
   ============================================================ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 36px 20px;
}

.login-card {
    width: 100%;
    max-width: 480px;

    overflow: hidden;

    background: var(--pl-white);

    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-large);

    box-shadow: var(--pl-shadow-card);
}

/* ============================================================
   04. BRAND HEADER
   ============================================================ */

.login-header {
    padding: 34px 36px 30px;

    text-align: center;
    color: var(--pl-white);

    background:
        linear-gradient(
            135deg,
            var(--pl-navy-dark) 0%,
            var(--pl-navy) 65%,
            var(--pl-navy-light) 100%
        );

    border-bottom: 3px solid var(--pl-gold);
}

.login-home-link {
    display: inline-flex;
    text-decoration: none;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 16px;

    border: 1px solid rgba(216, 180, 107, 0.55);
    border-radius: 18px;

    background: var(--pl-navy);
    color: var(--pl-gold);

    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;

    box-shadow:
        0 8px 24px rgba(12, 25, 43, 0.2);
}

.login-header h1 {
    margin: 0;

    color: var(--pl-white);

    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.brand-subtitle {
    margin: 8px 0 0;

    color: var(--pl-gold-light);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-brand-message {
    margin: 24px 0;

    color: var(--pl-gold-light);

    font-size: 18px;
    font-weight: 650;
}

/* ============================================================
   05. LOGIN CONTENT
   ============================================================ */

.login-content {
    padding: 36px 38px 30px;

    background: var(--pl-white);
}

.login-content h2 {
    margin: 0 0 10px;

    color: var(--pl-navy);

    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.login-content h3 {
    margin: 0 0 12px;

    color: var(--pl-navy);

    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
}

.login-description {
    margin: 0 0 28px;

    color: var(--pl-text-secondary);

    font-size: 14px;
    line-height: 1.65;
}

/* ============================================================
   06. AUTHENTICATION STEPS
   ============================================================ */

.auth-step {
    width: 100%;
    min-width: 0;
}

.auth-step form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.auth-step .form-message:not([hidden]) {
    margin-bottom: 16px;
}

.auth-step .form-group {
    width: 100%;
    min-width: 0;
}

/* ============================================================
   07. FORM GROUPS
   ============================================================ */

.form-group {
    display: flex;
    flex-direction: column;

    min-width: 0;
    gap: 8px;
}

.form-group label {
    color: var(--pl-navy);

    font-size: 13px;
    font-weight: 650;
}

/* ============================================================
   08. INPUT FIELDS
   ============================================================ */

.form-group input {
    display: block;

    width: 100%;
    min-width: 0;
    height: 48px;

    padding: 0 14px;

    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-small);

    background: var(--pl-white);
    color: var(--pl-text-primary);

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color var(--pl-transition),
        box-shadow var(--pl-transition),
        background-color var(--pl-transition);
}

.form-group input:hover {
    border-color: #b8a47d;
}

.form-group input:focus {
    border-color: var(--pl-gold);

    box-shadow:
        0 0 0 3px rgba(216, 180, 107, 0.18);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.form-group input[aria-invalid="true"] {
    border-color: var(--pl-error);
}

.form-group input[aria-invalid="true"]:focus {
    box-shadow:
        0 0 0 3px rgba(185, 28, 28, 0.12);
}

/* ============================================================
   09. PASSWORD VISIBILITY
   ============================================================ */

.password-field {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 76px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    min-width: 56px;
    height: 34px;

    padding: 0 8px;

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: var(--pl-navy-light);

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color var(--pl-transition),
        background-color var(--pl-transition);
}

.password-toggle:hover {
    background: #faf4e7;
    color: var(--pl-gold-dark);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--pl-gold);
    outline-offset: 2px;
}

.password-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   10. PRIMARY BUTTON
   ============================================================ */

.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;

    margin-top: 6px;
    padding: 12px 20px;

    border: 1px solid var(--pl-navy);
    border-radius: var(--pl-radius-small);

    background:
        linear-gradient(
            135deg,
            var(--pl-navy),
            var(--pl-navy-light)
        );

    color: var(--pl-white);

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    text-align: center;

    cursor: pointer;

    transition:
        transform var(--pl-transition),
        background var(--pl-transition),
        box-shadow var(--pl-transition);
}

.primary-button:hover:not(:disabled) {
    background:
        linear-gradient(
            135deg,
            var(--pl-navy-dark),
            var(--pl-navy)
        );

    box-shadow:
        0 6px 18px rgba(20, 38, 61, 0.2);

    transform: translateY(-1px);
}

.primary-button:active:not(:disabled) {
    transform: translateY(0);
}

.primary-button:focus-visible {
    outline: 3px solid var(--pl-gold);
    outline-offset: 3px;
}

.primary-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   11. SECONDARY BUTTON
   ============================================================ */

.secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 44px;

    padding: 11px 16px;

    border: 1px solid var(--pl-gold);
    border-radius: var(--pl-radius-small);

    background: var(--pl-white);
    color: var(--pl-navy);

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    text-align: center;

    cursor: pointer;

    transition:
        background-color var(--pl-transition),
        border-color var(--pl-transition),
        color var(--pl-transition);
}

.secondary-button:hover:not(:disabled) {
    background: #faf4e7;
    border-color: var(--pl-gold-dark);
}

.secondary-button:focus-visible {
    outline: 3px solid var(--pl-gold);
    outline-offset: 3px;
}

.secondary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   12. TEXT BUTTON
   ============================================================ */

.text-button {
    padding: 4px 0;

    border: 0;
    background: transparent;

    color: var(--pl-navy-light);

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    text-decoration: underline;
    text-underline-offset: 3px;

    cursor: pointer;
}

.text-button:hover:not(:disabled) {
    color: var(--pl-gold-dark);
}

.text-button:focus-visible {
    outline: 2px solid var(--pl-gold);
    outline-offset: 3px;
}

/* ============================================================
   13. STATUS MESSAGES
   ============================================================ */

.form-message {
    padding: 13px 15px;

    border: 1px solid transparent;
    border-radius: var(--pl-radius-small);

    font-size: 13px;
    line-height: 1.6;
}

.form-message.success {
    border-color: #bbf7d0;
    background: var(--pl-success-background);
    color: var(--pl-success);
}

.form-message.error {
    border-color: #fecaca;
    background: var(--pl-error-background);
    color: var(--pl-error);
}

.form-message.warning {
    border-color: #fde68a;
    background: var(--pl-warning-background);
    color: var(--pl-warning);
}

.form-message[hidden] {
    display: none !important;
}

/* ============================================================
   14. MFA ENROLLMENT ENTRY
   ============================================================ */

.mfa-enrollment-entry {
    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid var(--pl-border);
}

.mfa-enrollment-description {
    margin: 0 0 14px;

    color: var(--pl-text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

.mfa-enrollment-entry .secondary-button {
    width: 100%;
}

/* ============================================================
   15. MFA LOGIN
   ============================================================ */

#mfa-login-step .form-group {
    margin-bottom: 4px;
}

#mfa-login-code,
#mfa-enrollment-code,
#mfa-sms-enrollment-code {
    text-align: center;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: 4px;
}

#mfa-login-code::placeholder,
#mfa-enrollment-code::placeholder,
#mfa-sms-enrollment-code::placeholder {
    letter-spacing: 4px;
}

#mfa-login-step .primary-button {
    margin-top: 10px;
}

.mfa-recovery-option {
    margin-top: 14px;
    text-align: center;
}

#mfa-login-back {
    margin-top: 16px;
}

/* ============================================================
   16. MFA INSTRUCTIONS
   ============================================================ */

.mfa-instructions,
.mfa-setup-instructions {
    margin: 16px 0;

    padding: 16px 18px;

    border: 1px solid #e5d4b0;
    border-radius: var(--pl-radius-medium);

    background: var(--pl-ivory);
    color: var(--pl-text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

.mfa-setup-instructions p {
    margin: 0 0 10px;
}

.mfa-setup-instructions p:last-child {
    margin-bottom: 0;
}

#mfa-enrollment-setup-section {
    width: 100%;
}

#mfa-enrollment-back {
    margin-top: 16px;
}

/* ============================================================
   17. AUTHENTICATOR SECRET
   ============================================================ */

.mfa-secret-container {
    margin: 16px 0;
    padding: 17px;

    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-medium);

    background: var(--pl-ivory);
}

.mfa-secret-container > label {
    display: block;

    margin-bottom: 10px;

    color: var(--pl-navy);

    font-size: 13px;
    font-weight: 700;
}

.mfa-secret-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 10px;
}

.mfa-secret-field input {
    flex: 1 1 180px;

    min-width: 0;
    min-height: 44px;

    padding: 10px 12px;

    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-small);

    background: var(--pl-white);
    color: var(--pl-navy);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 13px;

    overflow-wrap: anywhere;
}

.mfa-secret-field input:focus {
    outline: 2px solid var(--pl-gold);
}

.mfa-secret-field .secondary-button {
    flex: 0 0 auto;
    width: auto;
}

/* ============================================================
   18. SECURITY NOTICES
   ============================================================ */

.security-notice {
    margin: 16px 0;
    padding: 15px 17px;

    border: 1px solid #e6cf9c;
    border-radius: var(--pl-radius-small);

    background: #fffbeb;
    color: #72531e;

    font-size: 13px;
    line-height: 1.7;
}

.security-notice strong {
    color: #684814;
}

/* ============================================================
   19. RECOVERY CODE STEP
   ============================================================ */

#mfa-recovery-codes-step .login-description {
    margin-bottom: 18px;
}

#mfa-recovery-codes-step .security-notice {
    margin-bottom: 18px;
}

.mfa-recovery-codes-list {
    width: 100%;
    min-width: 0;

    margin: 18px 0;
    padding: 14px;

    border: 1px solid #e5d4b0;
    border-radius: var(--pl-radius-medium);

    background: var(--pl-ivory);
}

/* ============================================================
   20. RECOVERY CODE LIST
   ============================================================ */

.mfa-recovery-code-items,
#mfa-recovery-codes-step .mfa-recovery-code-items {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 10px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    list-style: none;
    counter-reset: recovery-code;
}

.mfa-recovery-code-items li,
#mfa-recovery-codes-step .mfa-recovery-code-items li {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100%;
    min-width: 0;
    min-height: 56px;

    margin: 0;
    padding: 12px 14px;

    border: 1px solid #d8c6a2;
    border-radius: 9px;

    background: var(--pl-white);
    color: var(--pl-navy);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;

    overflow-wrap: anywhere;
    word-break: normal;

    counter-increment: recovery-code;
}

.mfa-recovery-code-items li::before,
#mfa-recovery-codes-step
.mfa-recovery-code-items li::before {
    content: counter(
        recovery-code,
        decimal-leading-zero
    ) ".";

    flex: 0 0 30px;

    color: #9b773d;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.mfa-recovery-code-items li:nth-child(even) {
    background: #fffdf9;
}

.mfa-recovery-code-value {
    display: block;
    min-width: 0;

    color: var(--pl-navy);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: inherit;
    font-weight: 700;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

/* ============================================================
   21. RECOVERY CODE ACTIONS
   ============================================================ */

.mfa-recovery-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 18px;
}

.mfa-recovery-actions .secondary-button {
    flex: 1 1 140px;
    width: auto;
}

/* ============================================================
   22. RECOVERY CODE ACKNOWLEDGMENT
   ============================================================ */

#mfa-recovery-codes-step .form-group {
    margin-top: 18px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    color: var(--pl-text-primary);

    font-size: 13px;
    line-height: 1.6;

    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin-top: 2px;

    accent-color: var(--pl-navy);
}

.checkbox-label span {
    flex: 1;
}

#mfa-recovery-codes-finish {
    margin-top: 18px;
}

/* ============================================================
   23. LOGIN LINKS
   ============================================================ */

.login-links {
    margin-top: 24px;

    text-align: center;

    font-size: 13px;
    line-height: 1.8;
}

.login-links p {
    margin: 0 0 8px;
}

.login-links a {
    color: var(--pl-navy-light);

    font-weight: 650;
    text-decoration: none;
}

.login-links a:hover {
    color: var(--pl-gold-dark);
    text-decoration: underline;
}

.login-links a:focus-visible {
    outline: 2px solid var(--pl-gold);
    outline-offset: 3px;
}

/* ============================================================
   24. FOOTER
   ============================================================ */

.login-footer {
    padding: 20px 30px;

    border-top: 1px solid var(--pl-border);

    background: var(--pl-ivory);

    text-align: center;
}

.login-footer p {
    margin: 0;

    color: var(--pl-text-secondary);

    font-size: 11px;
    line-height: 1.7;
}

.footer-copyright {
    color: var(--pl-text-secondary);
    font-size: 11px;
    line-height: 1.7;
}

.footer-company {
    color: var(--pl-navy);
    font-weight: 700;
    font-size: 11px;
}

.login-footer a {
    color: var(--pl-navy-light);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   25. GENERAL ACCESSIBILITY
   ============================================================ */

:focus-visible {
    outline: 3px solid rgba(216, 180, 107, 0.55);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   26. TABLET
   ============================================================ */

@media (max-width: 768px) {
    .login-page {
        padding: 24px 16px;
    }

    .login-card {
        max-width: 480px;
    }

    .login-header {
        padding: 30px 26px 26px;
    }

    .login-content {
        padding: 30px 26px 26px;
    }

    .login-content h2 {
        font-size: 22px;
    }
}

/* ============================================================
   27. MOBILE
   ============================================================ */

@media (max-width: 480px) {
    .login-page {
        align-items: flex-start;
        padding: 14px 10px;
    }

    .login-card {
        border-radius: 14px;
    }

    .login-header {
        padding: 26px 20px 23px;
    }

    .brand-mark {
        width: 56px;
        height: 56px;
        font-size: 21px;
    }

    .login-header h1 {
        font-size: 26px;
    }

    .login-content {
        padding: 25px 20px;
    }

    .login-content h2 {
        font-size: 21px;
    }

    .login-description {
        font-size: 13px;
    }

    .mfa-secret-container {
        padding: 13px;
    }

    .mfa-secret-field {
        flex-direction: column;
        align-items: stretch;
    }

    .mfa-secret-field .secondary-button {
        width: 100%;
    }

    .mfa-recovery-codes-list {
        padding: 10px;
    }

    .mfa-recovery-code-items {
        gap: 8px;
    }

    .mfa-recovery-code-items li,
    #mfa-recovery-codes-step
    .mfa-recovery-code-items li {
        gap: 10px;
        min-height: 52px;
        padding: 10px;

        font-size: 12px;
    }

    .mfa-recovery-code-items li::before {
        flex-basis: 25px;
        font-size: 11px;
    }

    .mfa-recovery-code-value {
        font-size: 12px;
    }

    .mfa-recovery-actions {
        flex-direction: column;
    }

    .mfa-recovery-actions .secondary-button {
        width: 100%;
        flex-basis: auto;
    }
}

/* ============================================================
   28. SMALL MOBILE
   ============================================================ */

@media (max-width: 360px) {
    .login-page {
        padding: 8px;
    }

    .login-header {
        padding: 22px 15px;
    }

    .login-content {
        padding: 22px 15px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .form-group input {
        font-size: 13px;
    }
}

/* ============================================================
   29. PRINT STYLES
   ============================================================ */

@media print {
    body {
        background: #ffffff !important;
        color: #000000;
    }

    .login-page {
        display: block;
        min-height: auto;
        padding: 0;
    }

    .login-card {
        max-width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-header {
        background: #ffffff;
        border-bottom: 2px solid var(--pl-gold);
    }

    .login-header h1 {
        color: var(--pl-navy);
    }

    .brand-subtitle {
        color: var(--pl-navy);
    }

    .login-content {
        padding: 20px 0;
    }

    .primary-button,
    .secondary-button,
    .text-button,
    .password-toggle,
    .login-links {
        display: none !important;
    }

    #mfa-recovery-codes-step
    .mfa-recovery-code-items {
        display: block;
    }

    #mfa-recovery-codes-step
    .mfa-recovery-code-items li {
        break-inside: avoid;
        page-break-inside: avoid;

        margin-bottom: 8px;

        background: #ffffff !important;
        border: 1px solid #999999;

        font-size: 15pt;
    }

    #mfa-recovery-codes-step
    .mfa-recovery-code-value {
        font-size: 15pt;
    }
}

/* ============================================================
   30. BACK TO HOMEPAGE BUTTON
   ============================================================ */

.login-return-home {
    margin: 18px 20px 24px;
    text-align: center;
}

.login-return-home .return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-height: 44px;

    margin: 0 auto;
    padding: 12px 26px;

    background: var(--pl-navy);
    color: var(--pl-white);

    border: 1px solid var(--pl-gold);
    border-radius: 50px;

    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;

    box-shadow:
        0 4px 12px rgba(20, 38, 61, 0.15);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-return-home .return-link:hover {
    background: var(--pl-gold);
    color: var(--pl-navy);

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(20, 38, 61, 0.22);
}

.login-return-home .return-link:focus-visible {
    outline: 3px solid var(--pl-gold);
    outline-offset: 3px;
}

/* ============================================================
   31. SMS MFA METHOD SELECTION
   ============================================================ */

.mfa-method-choice {
    margin: 0 0 20px;
}

.mfa-method-choice > label {
    display: block;

    margin-bottom: 9px;

    color: var(--pl-navy);

    font-size: 13px;
    font-weight: 750;
}

#mfa-method-select {
    display: block;

    width: 100%;
    min-height: 48px;

    padding: 12px 40px 12px 14px;

    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-small);

    background-color: var(--pl-white);
    color: var(--pl-text-primary);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color var(--pl-transition),
        box-shadow var(--pl-transition);
}

#mfa-method-select:hover {
    border-color: var(--pl-gold);
}

#mfa-method-select:focus-visible {
    outline: none;
    border-color: var(--pl-gold);

    box-shadow:
        0 0 0 3px rgba(216, 180, 107, 0.2);
}

#mfa-method-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   32. SMS LOGIN CONTROLS
   ============================================================ */

.mfa-sms-controls {
    margin: 0 0 22px;
    padding: 16px;

    border: 1px solid #e6d2a6;
    border-radius: var(--pl-radius-medium);

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #faf5e9
        );
}

.mfa-sms-controls .mfa-instructions {
    margin: 0 0 14px;
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--pl-text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

#mfa-send-sms {
    margin: 0;
}

#mfa-sms-status {
    margin: 12px 0 0;

    color: var(--pl-text-secondary);

    font-size: 12px;
    line-height: 1.6;
}

#mfa-sms-status[hidden] {
    display: none !important;
}

/* ============================================================
   33. FIRST-TIME MFA ENROLLMENT SELECTION
   ============================================================ */

.mfa-enrollment-method-choice {
    min-width: 0;

    margin: 0 0 24px;
    padding: 16px;

    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-medium);

    background: var(--pl-ivory);
}

.mfa-enrollment-method-choice legend {
    padding: 0 7px;

    color: var(--pl-navy);

    font-size: 13px;
    font-weight: 800;
}

.mfa-enrollment-method-choice label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 8px 0;
    padding: 12px 14px;

    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-small);

    background: var(--pl-white);

    color: var(--pl-text-primary);

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition:
        border-color var(--pl-transition),
        background-color var(--pl-transition);
}

.mfa-enrollment-method-choice label:hover {
    border-color: var(--pl-gold);
}

.mfa-enrollment-method-choice label:has(input:checked) {
    background: #fff9ed;
    border-color: var(--pl-gold-dark);
}

.mfa-enrollment-method-choice input[type="radio"] {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: var(--pl-navy);

    cursor: pointer;
}

.mfa-enrollment-method-choice label:has(
    input:focus-visible
) {
    outline: 3px solid rgba(216, 180, 107, 0.3);
    outline-offset: 2px;
}

/* ============================================================
   34. SMS ENROLLMENT
   ============================================================ */

#mfa-sms-enrollment-section {
    width: 100%;
    min-width: 0;

    margin: 0 0 16px;
}

#mfa-sms-enrollment-section .mfa-instructions {
    margin-top: 0;
}

#mfa-sms-enrollment-confirm-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#mfa-sms-enrollment-code {
    width: 100%;
    height: 54px;

    padding: 10px 14px;

    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-small);

    background: var(--pl-white);

    color: var(--pl-navy);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 22px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 5px;
}

#mfa-sms-enrollment-code:focus {
    outline: none;
    border-color: var(--pl-gold);

    box-shadow:
        0 0 0 3px rgba(216, 180, 107, 0.2);
}

#mfa-sms-enrollment-confirm-submit {
    margin-top: 4px;
}

#mfa-sms-enrollment-resend {
    display: block;

    margin: 16px auto 0;

    text-align: center;
}

#mfa-sms-enrollment-resend:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   35. MFA MOBILE ADJUSTMENTS
   ============================================================ */

@media (max-width: 480px) {
    .mfa-sms-controls {
        padding: 13px;
    }

    .mfa-enrollment-method-choice {
        padding: 12px;
    }

    .mfa-enrollment-method-choice label {
        padding: 12px;
    }

    #mfa-method-select {
        font-size: 14px;
    }

    #mfa-sms-enrollment-code {
        font-size: 20px;
        letter-spacing: 4px;
    }
}

/* ============================================================
   END OF FILE 099
   PENNY LEDGER
   Stagecoach West, L.L.C.
   ============================================================ */