/* ============================================
   LOGIN.CSS - COMPLETE AUTH PAGES STYLING
   Using theme variables from static.css
   ============================================ */

/* ============================================
   BASE AUTH LAYOUT - Shared across all auth pages
   ============================================ */

html, body {
    cursor: default;
    caret-color: transparent;
}

input:not([type]),
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
textarea,
[contenteditable="true"],
[contenteditable="plaintext-only"] {
    cursor: text;
    caret-color: auto;
}

/* Container with background image overlay */
.authx-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.2),   /* Sapphire blue with opacity */
        rgba(6, 197, 6, 0.2)),     /* Electric lime with opacity */
      /**  url('/assets/web/appLogo.png') center/cover no-repeat fixed **/;
    background-color: var(--bg-color, #FAFAFA);
}

/* Dark theme adjustment for background */
[data-theme="dark"] .authx-container {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7), 
        rgba(0, 0, 0, 0.5)),
        /**  url('/assets/web/appLogo.png') center/cover no-repeat fixed **/;
     background-color: var(--dark-background, #020202);
}

/* Fallback if image doesn't load */
@media (max-width: 768px) {
    .authx-container,
    [data-theme="dark"] .authx-container {
        background: var(--bg-color, #FAFAFA);
    }
}

/* Auth Card - Main container for all auth forms */
.authx-card {
    width: 100%;
    max-width: 480px;
    background: var(--surface-color, #ffffff);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color, #e0e0e0);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Remove unused brand section styles */
.authx-brand,
.authx-brand-title,
.authx-brand-subtitle {
    display: none;
}

.authx-card .authx-top-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.authx-card .authx-top-home-link i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.authx-card .authx-top-home-link:hover i {
    transform: translateX(-3px);
}

.authx-footer--before-oauth {
    margin-top: 20px;
    margin-bottom: 4px;
    padding-top: 0;
    border-top: none;
}

/* Sign-in top row: Home (left) + business link (right) — stay one row on mobile */
.authx-business-prompt--signin-top.authx-business-prompt--split {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.authx-business-prompt--signin-top .authx-top-home-link {
    flex: 0 0 auto;
    margin-right: auto;
}

.authx-business-prompt--signin-top .authx-business-text {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

/* ============================================
   BUSINESS PROMPT SECTION - Used in multiple auth pages
   ============================================ */
.authx-business-prompt {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.authx-business-text {
    color: var(--secondary-text-color, #666666);
    font-size: 1rem;
    margin: 0;
}

.authx-business-text .authx-link {
    font-weight: 600;
    color: var(--electric-lime, #06C506);
}

.authx-business-text .authx-link:hover {
    color: var(--sapphire-blue, #0066CC);
    text-decoration: underline;
}

/* Back button styling - Used in forgot password, reset password */
.authx-business-prompt .authx-link i {
    margin-right: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.authx-business-prompt .authx-link:hover i {
    transform: translateX(-3px);
}

/* ============================================
   HEADER SECTION - All auth pages
   ============================================ */
.authx-header {
    text-align: center;
    margin-bottom: 30px;
}

.authx-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color, #000000);
    margin-bottom: 10px;
}

.authx-subtitle {
    font-size: 1rem;
    color: var(--secondary-text-color, #666666);
}

/* ============================================
   FORM ELEMENTS - Shared across all auth pages
   ============================================ */
.authx-form-group {
    margin-bottom: 24px;
}

.authx-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color, #000000);
    font-size: 0.95rem;
}

.authx-label-with-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.authx-help-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: var(--electric-lime, #06C506);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    flex-shrink: 0;
}

.authx-help-icon:hover {
    filter: brightness(1.08);
}

/* Input Wrapper with Icon */
.authx-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.authx-input {
    width: 100%;
    padding: 14px 45px 14px 45px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    font-size: 1rem;
    background: var(--surface-color, #ffffff);
    color: var(--text-color, #000000);
    transition: all 0.3s ease;
}

.authx-input:focus {
    outline: none;
    border-color: var(--electric-lime, #06C506);
    box-shadow: 0 0 0 4px rgba(6, 197, 6, 0.1);
}

.authx-input::placeholder {
    color: var(--secondary-text-color, #666666);
    opacity: 0.5;
}

/* Input validation visual feedback */
.authx-input.error {
    border-color: #f44336 !important;
}

.authx-input.valid {
    border-color: var(--electric-lime, #06C506) !important;
}

/* Input Icons - Base style for all icons */
.authx-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text-color, #666666);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

/* Hide browser-native password reveal (duplicate eye on Edge/Chrome) */
.authx-input-wrapper input[type="password"]::-ms-reveal,
.authx-input-wrapper input[type="password"]::-ms-clear,
.auth-container .input-container input[type="password"]::-ms-reveal,
.auth-container .input-container input[type="password"]::-ms-clear {
    display: none;
}

.authx-input-wrapper input[type="password"]::-webkit-credentials-auto-fill-button,
.auth-container .input-container input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none;
    pointer-events: none;
}

/* Legacy business onboarding (.auth-container) — align with authx password row */
.auth-container .input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-container .input-container .form-control,
.auth-container .input-container .authx-input {
    width: 100%;
    padding-right: 45px;
}

.auth-container .input-container .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

/* Password Toggle Button - Used in login, signup, reset password, onboarding */
.authx-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-text-color, #666666);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, opacity 0.2s ease;
    z-index: 2;
    line-height: 1;
}

.authx-password-toggle[hidden] {
    display: none !important;
}

.authx-referral-status {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 0.95rem;
}

.authx-referral-status--valid {
    color: #2e7d32;
}

.authx-referral-status--invalid {
    color: #c62828;
}

.authx-referral-status--pending {
    color: var(--secondary-text-color, #666);
}

.authx-input-wrapper--referral .authx-input {
    padding-right: 2.5rem;
}

.authx-password-toggle:hover {
    color: var(--electric-lime, #06C506);
}

.authx-password-toggle:focus {
    outline: none;
    color: var(--electric-lime, #06C506);
}

/* Form hint text - Used in signup, reset password */
.authx-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--secondary-text-color, #666666);
}

/* Legal consent checkbox - signup and onboarding */
.authx-consent {
    margin: 20px 0 8px;
    padding: 14px 16px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    background: var(--card-bg, rgba(0, 0, 0, 0.02));
}

.authx-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: var(--secondary-text-color, #666666);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.authx-consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--electric-lime, #06C506);
}

.authx-footer--legal {
    margin-top: 16px;
    padding-top: 16px;
}

.authx-footer-text--legal {
    font-size: 0.85rem;
    line-height: 1.55;
}

.authx-oauth--disabled {
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(0.15);
}

.authx-oauth--disabled .authx-oauth-divider {
    pointer-events: none;
}

/* Options Row - Forgot password links */
.authx-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.authx-options.centered {
    justify-content: center;
    margin-top: 20px;
}

/* Links styling */
.authx-link {
    color: var(--electric-lime, #06C506);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.authx-link:hover {
    color: var(--sapphire-blue, #0066CC);
    text-decoration: underline;
}

/* ============================================
   BUTTONS - All auth pages
   ============================================ */
.authx-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Primary button - Gradient style */
.authx-btn-primary {
    background: linear-gradient(135deg, var(--sapphire-blue, #0066CC), var(--electric-lime, #06C506));
    color: white;
    box-shadow: 0 10px 20px rgba(6, 197, 6, 0.2);
}

.authx-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 197, 6, 0.3);
}

.authx-btn-primary i {
    transition: transform 0.3s ease;
}

.authx-btn-primary:hover i {
    transform: translateX(5px);
}

/* Paper plane icon animation - Forgot password */
.authx-btn-primary i.fa-paper-plane {
    transition: transform 0.3s ease;
}

.authx-btn-primary:hover i.fa-paper-plane {
    transform: translateX(3px) translateY(-2px);
}

/* Success state for verify button */
.authx-btn-primary.success {
    background: var(--electric-lime, #06C506);
    cursor: default;
}

.authx-btn-primary.success:hover {
    transform: none;
    box-shadow: 0 10px 20px rgba(6, 197, 6, 0.2);
}

.authx-btn-primary.success i {
    animation: checkmark 0.3s ease forwards;
}

/* Disabled button state */
.authx-btn-primary:disabled,
.authx-btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.authx-btn-primary:disabled:hover {
    transform: none;
    box-shadow: 0 10px 20px rgba(6, 197, 6, 0.2);
}

.authx-btn-primary:disabled i {
    animation: none;
}

/* Secondary button - Outline style */
.authx-btn-secondary {
    background: transparent;
    color: var(--text-color, #000000);
    border: 2px solid var(--border-color, #e0e0e0);
    min-width: 140px;
}

.authx-btn-secondary i {
    margin-right: 4px;
}

.authx-btn-secondary:hover {
    border-color: var(--electric-lime, #06C506);
    color: var(--electric-lime, #06C506);
    transform: translateY(-2px);
    background: rgba(6, 197, 6, 0.05);
}

.authx-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.authx-btn-secondary:disabled:hover {
    border-color: var(--border-color, #e0e0e0);
    color: var(--text-color, #000000);
    background: transparent;
    transform: none;
}

.authx-oauth {
    margin-top: 20px;
}

.authx-oauth-divider {
    text-align: center;
    color: var(--text-muted, #666);
    font-size: 0.875rem;
    margin: 0 0 14px;
}

.authx-oauth-divider span {
    display: inline-block;
    padding: 0 10px;
    background: var(--card-bg, #fff);
}

.authx-oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    --authx-oauth-btn-height: 56px;
}

.authx-oauth-buttons .authx-btn-oauth {
    width: 100%;
    max-width: 100%;
    height: var(--authx-oauth-btn-height);
    min-height: var(--authx-oauth-btn-height);
    max-height: var(--authx-oauth-btn-height);
    margin-bottom: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.authx-btn-oauth {
    background: transparent;
    color: var(--text-color, #000000);
    border: 2px solid var(--border-color, #e0e0e0);
    min-width: 0;
    min-height: var(--authx-oauth-btn-height);
    padding: 0 20px;
    line-height: 1.2;
    font-size: 0.95rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.authx-btn-oauth i {
    margin-right: 0;
    flex-shrink: 0;
    pointer-events: none;
}

.authx-btn-oauth span {
    pointer-events: none;
}

.authx-btn-oauth--google i {
    color: #ea4335;
}

.authx-btn-oauth--facebook i {
    color: #1877f2;
}

.authx-btn-oauth--apple i {
    color: inherit;
}

.authx-btn-oauth:focus-visible {
    outline: 2px solid var(--electric-lime, #06C506);
    outline-offset: 2px;
}

/* Desktop hover only — mobile relies on :active / .is-pressed */
@media (hover: hover) and (pointer: fine) {
    .authx-btn-oauth:hover {
        border-color: var(--electric-lime, #06C506);
        color: var(--electric-lime, #06C506);
        transform: translateY(-2px);
        background: rgba(6, 197, 6, 0.05);
    }
}

.authx-btn-oauth:active,
.authx-btn-oauth.is-pressed {
    transform: scale(0.98);
    border-color: var(--electric-lime, #06C506);
    color: var(--electric-lime, #06C506);
    background: rgba(6, 197, 6, 0.12);
    box-shadow: inset 0 0 0 1px rgba(6, 197, 6, 0.15);
}

.cx-profile-modal[hidden] {
    display: none !important;
}

.cx-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.cx-profile-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cx-profile-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card-bg, #fff);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cx-profile-modal__form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.cx-profile-modal__header {
    flex-shrink: 0;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}

.cx-profile-modal__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
}

.cx-profile-modal__columns {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cx-profile-modal__col {
    min-width: 0;
}

.cx-profile-modal__divider {
    display: none;
}

.cx-profile-modal__footer {
    flex-shrink: 0;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--border-color, #e8e8e8);
    background: var(--card-bg, #fff);
}

.cx-profile-modal__title {
    margin: 0 0 4px;
    font-size: 1.125rem;
    line-height: 1.3;
}

.cx-profile-modal__hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-muted, #666);
}

.cx-profile-modal__form .authx-form-group {
    margin-bottom: 10px;
}

.cx-profile-modal__form .authx-form-group:last-child {
    margin-bottom: 0;
}

.cx-profile-modal__form .authx-label {
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.cx-profile-modal__form .authx-input {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9375rem;
    border-width: 1px;
}

.cx-profile-modal__geo-hint,
.cx-profile-modal__email-hint,
.cx-profile-modal__phone-hint {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--text-muted, #666);
}

.cx-profile-modal__error {
    color: #c62828;
    font-size: 0.8125rem;
    margin: 0 0 8px;
    line-height: 1.35;
}

.cx-profile-modal__optional {
    font-weight: 400;
    color: var(--text-muted, #666);
    font-size: 0.85em;
}

.cx-profile-modal__geo-row {
    margin-bottom: 0;
    margin-top: 2px;
}

.cx-profile-modal__geo-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.cx-profile-modal__geo-spinner {
    width: 20px;
    height: 20px;
}

.cx-profile-modal__geo-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.cx-profile-modal__geo-btn[hidden] {
    display: none;
}

.cx-profile-modal__geo-retry {
    padding: 0.3rem 0.65rem;
    font-size: 0.8125rem;
}

.cx-profile-modal__submit {
    width: 100%;
    margin: 0;
    padding: 10px 16px;
}

@media (min-width: 640px) {
    .cx-profile-modal {
        padding: 16px;
    }

    .cx-profile-modal__panel {
        max-width: 720px;
        max-height: calc(100dvh - 32px);
    }

    .cx-profile-modal__header {
        padding: 16px 20px 12px;
    }

    .cx-profile-modal__scroll {
        padding: 14px 20px;
    }

    .cx-profile-modal__footer {
        padding: 12px 20px 16px;
    }

    .cx-profile-modal__columns {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }

    .cx-profile-modal__col {
        flex: 1;
    }

    .cx-profile-modal__divider {
        display: block;
        flex-shrink: 0;
        width: 1px;
        align-self: stretch;
        background: var(--border-color, #d8d8d8);
        margin: 0 14px;
    }
}

body.cx-profile-modal-open {
    overflow: hidden;
}

/* ============================================
   FOOTER LINKS - All auth pages
   ============================================ */
.authx-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.authx-footer-text {
    color: var(--secondary-text-color, #666666);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.authx-footer-text:last-child {
    margin-bottom: 0;
}

/* Security Note Icon - MFA page */
.authx-footer-text i {
    margin-right: 6px;
    color: var(--electric-lime, #06C506);
    font-size: 0.9rem;
}

/* ============================================
   POWERED BY SECTION - All auth pages
   ============================================ */
.authx-powered {
    margin-top: 30px;
    text-align: center;
}

.authx-powered-text {
    font-size: 0.85rem;
    color: var(--secondary-text-color, #666666);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.authx-powered-text:hover {
    opacity: 1;
}

.authx-powered-text a {
    color: inherit;
    text-decoration: none;
}

.authx-powered-text a:hover {
    color: var(--electric-lime, #06C506);
}

/* ============================================
   ALERT SYSTEM - All auth pages
   ============================================ */
.authx-alert {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 16px;
    background: var(--surface-color, #ffffff);
    border-left: 4px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    animation: slideInDown 0.3s ease;
}

.authx-alert-success {
    border-left-color: var(--electric-lime, #06C506);
    background: rgba(6, 197, 6, 0.1);
}

.authx-alert-error {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.authx-alert-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.authx-alert-content i {
    font-size: 1.2rem;
}

.authx-alert-success .authx-alert-content i {
    color: var(--electric-lime, #06C506);
}

.authx-alert-error .authx-alert-content i {
    color: #f44336;
}

.authx-alert-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color, #000000);
}

.authx-alert-message {
    font-size: 0.9rem;
    color: var(--secondary-text-color, #666666);
    margin: 0;
}

.authx-alert-close {
    background: none;
    border: none;
    color: var(--secondary-text-color, #666666);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.authx-alert-close:hover {
    color: var(--text-color, #000000);
    transform: scale(1.1);
}

/* ============================================
   INFO MESSAGE - Used in email verification, OTP, MFA pages
   ============================================ */
.authx-info-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(6, 197, 6, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(6, 197, 6, 0.1);
}

.authx-info-message i {
    font-size: 2rem;
    color: var(--electric-lime, #06C506);
    flex-shrink: 0;
}

.authx-info-content {
    flex: 1;
}

.authx-info-content p {
    color: var(--text-color, #000000);
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.authx-info-content p:last-child {
    margin-bottom: 0;
}

.authx-info-content strong {
    color: var(--electric-lime, #06C506);
    font-weight: 600;
}

.authx-info-note {
    font-size: 0.9rem;
    color: var(--secondary-text-color, #666666);
}

/* Timer Display - Email verification, OTP pages */
.authx-timer {
    color: #f44336;
    font-weight: 600;
    background: rgba(244, 67, 54, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* ============================================
   PASSWORD MANAGEMENT - Reset password page specific
   ============================================ */

/* Password Strength Indicator */
.authx-password-strength {
    margin: 16px 0 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.authx-strength-bar {
    height: 6px;
    width: 0;
    flex: 1;
    background: var(--border-color, #e0e0e0);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.authx-strength-text {
    font-size: 0.85rem;
    color: var(--secondary-text-color, #666666);
    margin-left: auto;
}

.authx-strength-text span {
    font-weight: 600;
}

/* Password Match Indicator */
.authx-password-match {
    margin: 8px 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.authx-password-match i {
    font-size: 1rem;
}

.authx-password-match.match {
    background: rgba(6, 197, 6, 0.1);
    color: var(--electric-lime, #06C506);
}

.authx-password-match.match i {
    color: var(--electric-lime, #06C506);
}

.authx-password-match.nomatch {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.authx-password-match.nomatch i {
    color: #f44336;
}

/* ============================================
   VERIFICATION CODE INPUT - Email verification, OTP pages
   ============================================ */
.authx-input#code,
.authx-input#otp {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-align: center;
    font-weight: 600;
}

/* ============================================
   OTP PAGE SPECIFIC STYLES
   ============================================ */

/* OTP Actions Container */
.authx-otp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

/* Countdown Timer */
.authx-countdown {
    font-size: 0.9rem;
    color: var(--secondary-text-color, #666666);
    display: none;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   MFA PAGE SPECIFIC STYLES - Phone verification
   ============================================ */

/* Phone Input Container */
.authx-phone-container {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

/* Country Select Wrapper */
.authx-country-select-wrapper {
    position: relative;
    flex: 0 0 35%;
    height: 54px;
}

/* Icon inside country select */
.authx-country-select-wrapper .authx-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text-color, #666666);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.authx-country-select {
    width: 100%;
    height: 54px;
    padding: 0 35px 0 45px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    font-size: 0.95rem;
    background: var(--surface-color, #ffffff);
    color: var(--text-color, #000000);
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    line-height: 50px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.authx-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text-color, #666666);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.authx-country-select:focus {
    outline: none;
    border-color: var(--electric-lime, #06C506);
    box-shadow: 0 0 0 4px rgba(6, 197, 6, 0.1);
}

.authx-country-select option {
    background: var(--surface-color, #ffffff);
    color: var(--text-color, #000000);
    padding: 12px;
    font-size: 0.95rem;
}

/* Phone Input Wrapper */
.authx-phone-input-wrapper {
    position: relative;
    flex: 1;
    height: 54px;
}

/* Icon inside phone input */
.authx-phone-input-wrapper .authx-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text-color, #666666);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.authx-phone-input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 45px !important;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 16px;
    font-size: 1rem;
    background: var(--surface-color, #ffffff);
    color: var(--text-color, #000000);
    transition: all 0.3s ease;
    line-height: 50px;
}

.authx-phone-input:focus {
    outline: none;
    border-color: var(--electric-lime, #06C506);
    box-shadow: 0 0 0 4px rgba(6, 197, 6, 0.1);
}

.authx-phone-input::placeholder {
    color: var(--secondary-text-color, #666666);
    opacity: 0.5;
    line-height: normal;
}

/* ============================================
   ONBOARDING PAGE SPECIFIC STYLES
   ============================================ */

.authx-container--onboarding {
    padding: 12px;
    align-items: flex-start;
    padding-top: 16px;
}

.authx-card--onboarding {
    max-width: 420px;
    padding: 18px 20px 16px;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.authx-business-prompt--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.authx-card--onboarding .authx-top-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.authx-card--onboarding .authx-top-home-link i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.authx-card--onboarding .authx-top-home-link:hover i {
    transform: translateX(-3px);
}

.authx-business-prompt--split .authx-business-text {
    margin: 0;
    font-size: 0.95rem;
    text-align: right;
}

.authx-card--onboarding .authx-header {
    margin-bottom: 14px;
}

.authx-card--onboarding .authx-title {
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.authx-card--onboarding .authx-subtitle {
    font-size: 0.875rem;
    line-height: 1.35;
}

.authx-card--onboarding .authx-form-group {
    margin-bottom: 12px;
}

.authx-card--onboarding .authx-label {
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.authx-card--onboarding .authx-input {
    padding: 10px 40px;
    border-radius: 12px;
    font-size: 0.9rem;
    border-width: 1px;
}

.authx-card--onboarding .authx-input-icon {
    left: 12px;
    font-size: 0.9rem;
}

.authx-card--onboarding .authx-hint {
    margin-top: 3px;
    font-size: 0.75rem;
}

.authx-card--onboarding .authx-file-label {
    padding: 10px 14px;
    border-radius: 12px;
    gap: 8px;
}

.authx-card--onboarding .authx-file-label i {
    font-size: 1.15rem;
}

.authx-card--onboarding .authx-disclosure {
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.authx-card--onboarding .authx-disclosure-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
    gap: 6px;
}

.authx-card--onboarding .authx-disclosure-list li {
    font-size: 0.8rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.authx-card--onboarding .authx-options {
    margin-bottom: 12px;
}

.authx-card--onboarding .authx-btn {
    padding: 12px 18px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    gap: 8px;
}

.authx-card--onboarding .authx-footer {
    margin-top: 12px;
    padding-top: 12px;
}

.authx-card--onboarding .authx-footer-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

.authx-card--onboarding .authx-powered {
    margin-top: 14px;
}

.authx-card--onboarding .authx-powered-text {
    font-size: 0.75rem;
}

@media (max-width: 520px) {
    .authx-business-prompt--split:not(.authx-business-prompt--signin-top) {
        flex-wrap: wrap;
    }

    .authx-business-prompt--split:not(.authx-business-prompt--signin-top) .authx-business-text {
        text-align: left;
        width: 100%;
    }

    .authx-business-prompt--signin-top.authx-business-prompt--split {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .authx-business-prompt--signin-top .authx-top-home-link,
    .authx-business-prompt--signin-top .authx-business-text {
        font-size: 0.82rem;
    }

    .authx-business-prompt--signin-top .authx-business-text {
        width: auto;
        text-align: right;
    }
}

/* Required field indicator */
.authx-required {
    color: #f44336;
    margin-left: 2px;
}

/* Disclosure Section */
.authx-disclosure {
    background: rgba(6, 197, 6, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid var(--electric-lime, #06C506);
}

.authx-disclosure-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color, #000000);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.authx-disclosure-title i {
    color: var(--electric-lime, #06C506);
}

.authx-disclosure-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.authx-disclosure-list li {
    font-size: 0.9rem;
    color: var(--secondary-text-color, #666666);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.authx-disclosure-list li:before {
    content: "•";
    color: var(--electric-lime, #06C506);
    font-weight: bold;
    position: absolute;
    left: 4px;
}

.authx-disclosure-list li:last-child {
    margin-bottom: 0;
}

/* File Upload Styling */
.authx-file-upload {
    position: relative;
    margin-top: 4px;
}

.authx-file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.authx-file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--surface-color, #ffffff);
    border: 2px dashed var(--border-color, #e0e0e0);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color, #000000);
}

.authx-file-label i {
    font-size: 1.5rem;
    color: var(--electric-lime, #06C506);
}

.authx-file-label span {
    font-size: 0.95rem;
    flex: 1;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
    text-align: left;
}

.authx-file-label:hover {
    border-color: var(--electric-lime, #06C506);
    background: rgba(6, 197, 6, 0.05);
    transform: translateY(-2px);
}

/* Select dropdown styling */
.authx-input select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.authx-input select option {
    background: var(--surface-color, #ffffff);
    color: var(--text-color, #000000);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

.authx-btn-primary i.fa-check {
    animation: checkmark 0.3s ease forwards;
}

/* ============================================
   DARK THEME SPECIFIC ADJUSTMENTS
   ============================================ */
[data-theme="dark"] .authx-card {
    background: rgba(2, 2, 2, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .authx-business-prompt {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .authx-business-text .authx-link {
    color: var(--electric-lime, #06C506);
}

[data-theme="dark"] .authx-business-text .authx-link:hover {
    color: #8cff8c;
}

[data-theme="dark"] .authx-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .authx-input:focus {
    border-color: var(--electric-lime, #06C506);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .authx-input::placeholder {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-input-icon {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-password-toggle {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-password-toggle:hover {
    color: var(--electric-lime, #06C506);
}

[data-theme="dark"] .authx-btn-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-theme="dark"] .authx-btn-secondary:hover {
    border-color: var(--electric-lime, #06C506);
    background: rgba(6, 197, 6, 0.1);
    color: var(--electric-lime, #06C506);
}

[data-theme="dark"] .authx-btn-secondary:disabled:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-theme="dark"] .authx-alert {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .authx-alert-title {
    color: #ffffff;
}

[data-theme="dark"] .authx-alert-message {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-alert-close {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-alert-close:hover {
    color: #ffffff;
}

[data-theme="dark"] .authx-link {
    color: var(--electric-lime, #06C506);
}

[data-theme="dark"] .authx-link:hover {
    color: #8cff8c;
}

[data-theme="dark"] .authx-powered-text a:hover {
    color: var(--electric-lime, #06C506);
}

[data-theme="dark"] .authx-hint {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-password-match {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .authx-password-match.match {
    background: rgba(6, 197, 6, 0.15);
}

[data-theme="dark"] .authx-password-match.nomatch {
    background: rgba(244, 67, 54, 0.15);
}

[data-theme="dark"] .authx-strength-bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .authx-info-message {
    background: rgba(6, 197, 6, 0.1);
    border-color: rgba(6, 197, 6, 0.2);
}

[data-theme="dark"] .authx-info-content p {
    color: #ffffff;
}

[data-theme="dark"] .authx-info-note {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-timer {
    background: rgba(244, 67, 54, 0.2);
    color: #ff6b6b;
}

[data-theme="dark"] .authx-country-select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .authx-country-select option {
    background: var(--dark-background, #020202);
    color: #ffffff;
}

[data-theme="dark"] .authx-country-select:focus {
    border-color: var(--electric-lime, #06C506);
    background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .authx-select-arrow {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-phone-input-wrapper .authx-input-icon,
[data-theme="dark"] .authx-country-select-wrapper .authx-input-icon {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-footer-text i {
    color: var(--electric-lime, #06C506);
}

[data-theme="dark"] .authx-consent {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .authx-consent-label {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-countdown {
    color: #CCCCCC;
}

[data-theme="dark"] .authx-btn-secondary:disabled {
    opacity: 0.3;
}

[data-theme="dark"] .authx-disclosure {
    background: rgba(6, 197, 6, 0.1);
}

[data-theme="dark"] .authx-file-label {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .authx-file-label:hover {
    border-color: var(--electric-lime, #06C506);
    background: rgba(6, 197, 6, 0.15);
}

[data-theme="dark"] .authx-input select option {
    background: #0a0a0a;
    color: #f5f5f5;
}

[data-theme="dark"] .authx-help-icon {
    background: var(--electric-lime, #06C506);
    color: #ffffff;
}

/* ============================================
   RESPONSIVE DESIGN - All pages
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .authx-card {
        padding: 30px;
        max-width: 450px;
    }
    
    .authx-title {
        font-size: 1.8rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .authx-container {
        padding: 16px;
    }
    
    .authx-card {
        padding: 24px;
        max-width: 100%;
        border-radius: 24px;
    }
    
    .authx-title {
        font-size: 1.6rem;
    }
    
    .authx-subtitle {
        font-size: 0.9rem;
    }
    
    .authx-input {
        padding: 12px 40px 12px 40px;
        font-size: 0.95rem;
    }
    
    .authx-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .authx-oauth-buttons {
        --authx-oauth-btn-height: 52px;
        gap: 12px;
    }

    .authx-btn-oauth {
        font-size: 0.9rem;
        padding-left: 16px;
        padding-right: 16px;
        /* Keep full-width hit target above 44px on all phones */
        min-height: max(44px, var(--authx-oauth-btn-height));
    }
    
    .authx-footer-text {
        font-size: 0.9rem;
    }
    
    .authx-business-prompt {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .authx-business-text {
        font-size: 0.95rem;
    }
    
    .authx-business-prompt .authx-link i {
        font-size: 0.8rem;
    }
    
    .authx-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .authx-password-strength {
        flex-wrap: wrap;
    }
    
    .authx-strength-text {
        margin-left: 0;
        width: 100%;
        text-align: left;
        margin-top: 4px;
    }
    
    .authx-password-match {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .authx-info-message {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }
    
    .authx-info-message i {
        font-size: 1.8rem;
    }
    
    .authx-info-content p {
        font-size: 0.9rem;
    }
    
    .authx-input#code,
    .authx-input#otp {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }
    
    .authx-otp-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .authx-btn-secondary {
        width: 100%;
        min-width: unset;
    }
    
    .authx-countdown {
        margin-top: 4px;
        text-align: center;
    }
    
    .authx-phone-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .authx-country-select-wrapper,
    .authx-phone-input-wrapper {
        flex: 1;
        height: 48px;
    }
    
    .authx-country-select {
        height: 48px;
        padding: 0 35px 0 40px;
        font-size: 0.9rem;
        line-height: 44px;
    }
    
    .authx-phone-input {
        height: 48px;
        padding: 0 16px 0 40px !important;
        font-size: 0.9rem;
        line-height: 44px;
    }
    
    .authx-country-select-wrapper .authx-input-icon,
    .authx-phone-input-wrapper .authx-input-icon {
        font-size: 1rem;
        left: 14px;
    }
    
    .authx-select-arrow {
        right: 12px;
        font-size: 0.75rem;
    }
    
    .authx-footer-text {
        font-size: 0.85rem;
    }
    
    .authx-file-label {
        padding: 12px 16px;
    }
    
    .authx-file-label i {
        font-size: 1.2rem;
    }
    
    .authx-file-label span {
        font-size: 0.9rem;
    }
    
    .authx-disclosure {
        padding: 16px;
    }
    
    .authx-disclosure-list li {
        font-size: 0.85rem;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .authx-card {
        padding: 20px;
    }
    
    .authx-title {
        font-size: 1.4rem;
    }
    
    .authx-subtitle {
        font-size: 0.85rem;
    }
    
    .authx-input {
        padding: 10px 35px 10px 35px;
        font-size: 0.9rem;
    }
    
    .authx-input-icon,
    .authx-password-toggle {
        font-size: 1rem;
    }
    
    .authx-business-prompt {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .authx-business-text {
        font-size: 0.9rem;
    }
    
    .authx-info-message {
        padding: 12px;
    }
    
    .authx-info-message i {
        font-size: 1.5rem;
    }
    
    .authx-input#code,
    .authx-input#otp {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .authx-country-select-wrapper,
    .authx-phone-input-wrapper {
        height: 44px;
    }
    
    .authx-country-select {
        height: 44px;
        padding: 0 30px 0 35px;
        font-size: 0.85rem;
        line-height: 40px;
    }
    
    .authx-phone-input {
        height: 44px;
        padding: 0 14px 0 35px !important;
        font-size: 0.85rem;
        line-height: 40px;
    }
    
    .authx-country-select-wrapper .authx-input-icon,
    .authx-phone-input-wrapper .authx-input-icon {
        font-size: 0.9rem;
        left: 12px;
    }
    
    .authx-select-arrow {
        right: 10px;
        font-size: 0.7rem;
    }
}

/* Landscape mode for phones */
@media (max-height: 600px) and (orientation: landscape) {
    .authx-container {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .authx-card {
        margin: 20px auto;
        padding: 20px;
    }
    
    .authx-business-prompt {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .authx-header {
        margin-bottom: 15px;
    }
    
    .authx-form-group {
        margin-bottom: 12px;
    }
    
    .authx-input {
        padding: 10px 40px 10px 40px;
    }
    
    .authx-btn {
        padding: 10px 16px;
        margin-bottom: 8px;
    }
}