/* =========================================================
   WONDER APP — VENDOR APPLICATION
   AUTHENTICATION STYLES
   File: /vendor_app/assets/css/auth.css
   ========================================================= */

/* =========================================================
   AUTH PAGE BASE
   ========================================================= */

.auth-page {
    min-height: 100vh;
    background: var(--color-bg, #f5f7fb);
    color: var(--color-text, #1f2937);
}

.auth-page .app-container {
    min-height: 100vh;
}

/* Prevent auth pages from inheriting dashboard spacing */
.auth-page .main-content {
    margin-left: 0;
    width: 100%;
}


/* =========================================================
   AUTH LAYOUT
   ========================================================= */

.auth-layout {
    min-height: 100vh;
    display: flex;
    width: 100%;
}

.auth-layout-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
}

.auth-layout-centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}


/* =========================================================
   AUTH BRAND / HERO
   ========================================================= */

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--color-primary, #2563eb),
            var(--color-primary-dark, #1d4ed8)
        );
    color: #ffffff;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -180px;
    right: -140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    bottom: -180px;
    left: -120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
}

.auth-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
}

.auth-brand-name {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
}

.auth-brand-tagline {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.78;
}

.auth-hero-title {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.auth-hero-text {
    margin: 0;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.84);
}

.auth-feature-list {
    display: grid;
    gap: 18px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth-feature-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 17px;
}

.auth-feature-content {
    min-width: 0;
}

.auth-feature-title {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.auth-feature-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}


/* =========================================================
   AUTH FORM PANEL
   ========================================================= */

.auth-form-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: var(--color-surface, #ffffff);
}

.auth-form-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.auth-form-container-wide {
    max-width: 620px;
}


/* =========================================================
   AUTH HEADER
   ========================================================= */

.auth-header {
    margin-bottom: 28px;
}

.auth-header-centered {
    text-align: center;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-heading, #111827);
}

.auth-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-muted, #6b7280);
}

.auth-header-logo {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    object-fit: contain;
    border-radius: 14px;
}

.auth-header-centered .auth-header-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {
    width: 100%;
    padding: 34px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 18px;
    background: var(--color-surface, #ffffff);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(15, 23, 42, 0.03);
}

.auth-card-flat {
    border: 0;
    box-shadow: none;
    padding: 0;
}

.auth-card-title {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 750;
    color: var(--color-heading, #111827);
}

.auth-card-subtitle {
    margin: 0 0 24px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-muted, #6b7280);
}


/* =========================================================
   AUTH FORM
   ========================================================= */

.auth-form {
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
    color: var(--color-heading, #111827);
}

.auth-form .form-label-required::after {
    content: " *";
    color: var(--color-danger, #dc2626);
}

.auth-form .form-input,
.auth-form .form-control,
.auth-form select,
.auth-form textarea {
    width: 100%;
}

.auth-form-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-muted, #6b7280);
}


/* =========================================================
   AUTH INPUT WRAPPER
   ========================================================= */

.auth-input-wrapper {
    position: relative;
    width: 100%;
}

.auth-input-wrapper .form-input,
.auth-input-wrapper .form-control {
    padding-left: 44px;
}

.auth-input-wrapper.has-action .form-input,
.auth-input-wrapper.has-action .form-control {
    padding-right: 46px;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: var(--color-muted, #9ca3af);
    pointer-events: none;
}

.auth-input-action {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 8px;
    background: transparent;
    color: var(--color-muted, #6b7280);
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.auth-input-action:hover {
    background: var(--color-bg, #f3f4f6);
    color: var(--color-primary, #2563eb);
}


/* =========================================================
   PASSWORD FIELD
   ========================================================= */

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

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 8px;
    background: transparent;
    color: var(--color-muted, #6b7280);
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: var(--color-bg, #f3f4f6);
    color: var(--color-primary, #2563eb);
}


/* =========================================================
   PASSWORD STRENGTH
   ========================================================= */

.password-strength {
    margin-top: 10px;
}

.password-strength-bar {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-border, #e5e7eb);
}

.password-strength-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.password-strength.weak .password-strength-fill {
    width: 25%;
    background: var(--color-danger, #dc2626);
}

.password-strength.medium .password-strength-fill {
    width: 50%;
    background: var(--color-warning, #d97706);
}

.password-strength.good .password-strength-fill {
    width: 75%;
    background: var(--color-info, #2563eb);
}

.password-strength.strong .password-strength-fill {
    width: 100%;
    background: var(--color-success, #16a34a);
}

.password-strength-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--color-muted, #6b7280);
}


/* =========================================================
   REMEMBER ME / CHECKBOX
   ========================================================= */

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 22px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text, #374151);
    cursor: pointer;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--color-primary, #2563eb);
}

.auth-checkbox-label {
    user-select: none;
}


/* =========================================================
   AUTH LINKS
   ========================================================= */

.auth-link {
    color: var(--color-primary, #2563eb);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.auth-link:hover {
    color: var(--color-primary-dark, #1d4ed8);
    text-decoration: underline;
}

.auth-forgot-link {
    font-size: 13px;
    white-space: nowrap;
}


/* =========================================================
   AUTH PRIMARY BUTTON
   ========================================================= */

.auth-submit {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.auth-submit.loading {
    pointer-events: none;
    opacity: 0.75;
}

.auth-submit .button-loader {
    width: 17px;
    height: 17px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
}

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


/* =========================================================
   AUTH SECONDARY ACTIONS
   ========================================================= */

.auth-secondary-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--color-muted, #6b7280);
}

.auth-secondary-actions a {
    color: var(--color-primary, #2563eb);
    font-weight: 650;
    text-decoration: none;
}

.auth-secondary-actions a:hover {
    text-decoration: underline;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
    color: var(--color-muted, #9ca3af);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border, #e5e7eb);
}

.auth-divider-text {
    white-space: nowrap;
}


/* =========================================================
   SOCIAL / ALTERNATIVE LOGIN
   ========================================================= */

.auth-social-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-social-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--color-border, #dfe3e8);
    border-radius: 10px;
    background: var(--color-surface, #ffffff);
    color: var(--color-text, #374151);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-social-button:hover {
    background: var(--color-bg, #f8fafc);
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.auth-social-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   REGISTRATION
   ========================================================= */

.auth-register-intro {
    margin-bottom: 24px;
}

.auth-register-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 28px;
}

.auth-register-step {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.auth-register-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 32px;
    right: 0;
    height: 2px;
    background: var(--color-border, #e5e7eb);
}

.auth-register-step.completed:not(:last-child)::after,
.auth-register-step.active:not(:last-child)::after {
    background: var(--color-primary, #2563eb);
}

.auth-register-step-number {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border, #d1d5db);
    border-radius: 50%;
    background: var(--color-surface, #ffffff);
    color: var(--color-muted, #6b7280);
    font-size: 11px;
    font-weight: 700;
}

.auth-register-step.active .auth-register-step-number,
.auth-register-step.completed .auth-register-step-number {
    border-color: var(--color-primary, #2563eb);
    background: var(--color-primary, #2563eb);
    color: #ffffff;
}

.auth-register-step-label {
    display: none;
}


/* =========================================================
   TERMS & CONSENT
   ========================================================= */

.auth-terms {
    margin: 18px 0 22px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--color-muted, #6b7280);
}

.auth-terms a {
    color: var(--color-primary, #2563eb);
    text-decoration: none;
}

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


/* =========================================================
   FORGOT / RESET PASSWORD
   ========================================================= */

.auth-recovery-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary-light, #eff6ff);
    color: var(--color-primary, #2563eb);
    font-size: 28px;
}

.auth-recovery-message {
    margin: 0 0 24px;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-muted, #6b7280);
}

.auth-reset-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 22px;
    padding: 13px 14px;
    border-radius: 10px;
    background: var(--color-info-light, #eff6ff);
    color: var(--color-info-dark, #1e40af);
    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   VERIFICATION
   ========================================================= */

.auth-verification {
    text-align: center;
}

.auth-verification-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-success-light, #ecfdf5);
    color: var(--color-success, #16a34a);
    font-size: 30px;
}

.auth-verification-message {
    max-width: 430px;
    margin: 0 auto 22px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-muted, #6b7280);
}

.auth-verification-email,
.auth-verification-mobile {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 13px;
    border-radius: 8px;
    background: var(--color-bg, #f3f4f6);
    color: var(--color-heading, #111827);
    font-size: 13px;
    font-weight: 650;
}


/* =========================================================
   OTP / PIN INPUT
   ========================================================= */

.auth-otp {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
}

.auth-otp-input {
    width: 48px;
    height: 54px;
    padding: 0;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: 10px;
    background: var(--color-surface, #ffffff);
    color: var(--color-heading, #111827);
    text-align: center;
    font-size: 21px;
    line-height: 1;
    font-weight: 750;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-otp-input:focus {
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-otp-input.is-invalid {
    border-color: var(--color-danger, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.auth-otp-input.is-valid {
    border-color: var(--color-success, #16a34a);
}


/* =========================================================
   OTP RESEND
   ========================================================= */

.auth-resend {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--color-muted, #6b7280);
}

.auth-resend-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary, #2563eb);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.auth-resend-button:hover {
    text-decoration: underline;
}

.auth-resend-button:disabled {
    color: var(--color-muted, #9ca3af);
    cursor: not-allowed;
    text-decoration: none;
}

.auth-countdown {
    font-weight: 650;
    color: var(--color-heading, #374151);
}


/* =========================================================
   TWO-FACTOR AUTHENTICATION
   ========================================================= */

.auth-2fa-methods {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.auth-2fa-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    background: var(--color-surface, #ffffff);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.auth-2fa-method:hover {
    border-color: var(--color-primary, #2563eb);
    background: var(--color-bg, #f8fafc);
}

.auth-2fa-method.active {
    border-color: var(--color-primary, #2563eb);
    background: var(--color-primary-light, #eff6ff);
}

.auth-2fa-method-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-bg, #f3f4f6);
    color: var(--color-primary, #2563eb);
}

.auth-2fa-method-content {
    flex: 1;
    min-width: 0;
}

.auth-2fa-method-title {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-heading, #111827);
}

.auth-2fa-method-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--color-muted, #6b7280);
}


/* =========================================================
   AUTH ALERTS
   ========================================================= */

.auth-alert {
    margin-bottom: 20px;
}

.auth-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 12px;
    line-height: 1.55;
}

.auth-success {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    line-height: 1.55;
}

.auth-warning {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   FORM VALIDATION
   ========================================================= */

.auth-field-error {
    display: block;
    margin-top: 6px;
    color: var(--color-danger, #dc2626);
    font-size: 11px;
    line-height: 1.45;
}

.auth-field-success {
    display: block;
    margin-top: 6px;
    color: var(--color-success, #16a34a);
    font-size: 11px;
    line-height: 1.45;
}

.auth-form .is-invalid {
    border-color: var(--color-danger, #dc2626) !important;
}

.auth-form .is-valid {
    border-color: var(--color-success, #16a34a) !important;
}


/* =========================================================
   CAPTCHA / SECURITY
   ========================================================= */

.auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    font-size: 11px;
    line-height: 1.55;
    color: var(--color-muted, #6b7280);
}

.auth-security-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--color-success, #16a34a);
}


/* =========================================================
   LOGIN SECURITY STATUS
   ========================================================= */

.auth-session-info {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--color-bg, #f8fafc);
    color: var(--color-muted, #6b7280);
    font-size: 11px;
    line-height: 1.5;
}

.auth-session-status {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--color-success, #16a34a);
}


/* =========================================================
   LOGOUT PAGE
   ========================================================= */

.auth-logout {
    text-align: center;
}

.auth-logout-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg, #f3f4f6);
    color: var(--color-muted, #6b7280);
    font-size: 28px;
}

.auth-logout-message {
    margin: 0 auto 24px;
    max-width: 400px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-muted, #6b7280);
}


/* =========================================================
   AUTH FOOTER
   ========================================================= */

.auth-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--color-muted, #9ca3af);
    font-size: 11px;
    line-height: 1.6;
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.auth-footer-links a {
    color: var(--color-muted, #6b7280);
    text-decoration: none;
}

.auth-footer-links a:hover {
    color: var(--color-primary, #2563eb);
    text-decoration: underline;
}

.auth-copyright {
    margin: 0;
}


/* =========================================================
   AUTH BACK LINK
   ========================================================= */

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    color: var(--color-muted, #6b7280);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.auth-back:hover {
    color: var(--color-primary, #2563eb);
}


/* =========================================================
   BUSINESS / VENDOR REGISTRATION
   ========================================================= */

.auth-business-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.auth-business-type {
    position: relative;
    min-height: 110px;
    padding: 16px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    background: var(--color-surface, #ffffff);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-business-type:hover {
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.auth-business-type.active,
.auth-business-type.selected {
    border-color: var(--color-primary, #2563eb);
    background: var(--color-primary-light, #eff6ff);
}

.auth-business-type-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--color-bg, #f3f4f6);
    color: var(--color-primary, #2563eb);
}

.auth-business-type-title {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-heading, #111827);
}

.auth-business-type-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--color-muted, #6b7280);
}


/* =========================================================
   AUTH LOADING STATE
   ========================================================= */

.auth-loading {
    position: relative;
    pointer-events: none;
}

.auth-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.45);
}

.auth-page.is-loading .auth-card,
.auth-page.is-loading .auth-form-container {
    pointer-events: none;
}


/* =========================================================
   AUTH DISABLED
   ========================================================= */

.auth-disabled {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}


/* =========================================================
   DARK MODE SUPPORT
   ========================================================= */

[data-theme="dark"] .auth-page {
    background: var(--color-bg, #0f172a);
}

[data-theme="dark"] .auth-form-panel,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .auth-social-button,
[data-theme="dark"] .auth-otp-input,
[data-theme="dark"] .auth-business-type,
[data-theme="dark"] .auth-2fa-method {
    background: var(--color-surface, #111827);
    border-color: var(--color-border, #273449);
}

[data-theme="dark"] .auth-title,
[data-theme="dark"] .auth-card-title,
[data-theme="dark"] .auth-form .form-label,
[data-theme="dark"] .auth-otp-input,
[data-theme="dark"] .auth-business-type-title,
[data-theme="dark"] .auth-2fa-method-title {
    color: var(--color-heading, #f9fafb);
}

[data-theme="dark"] .auth-subtitle,
[data-theme="dark"] .auth-card-subtitle,
[data-theme="dark"] .auth-field-help,
[data-theme="dark"] .auth-footer,
[data-theme="dark"] .auth-business-type-text,
[data-theme="dark"] .auth-2fa-method-text {
    color: var(--color-muted, #9ca3af);
}

[data-theme="dark"] .auth-session-info {
    background: #172033;
}

[data-theme="dark"] .auth-error {
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

[data-theme="dark"] .auth-success {
    background: rgba(20, 83, 45, 0.22);
    color: #86efac;
}

[data-theme="dark"] .auth-warning {
    background: rgba(120, 53, 15, 0.22);
    color: #fcd34d;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .auth-layout-split {
        grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
    }

    .auth-brand-panel {
        padding: 48px;
    }

    .auth-form-panel {
        padding: 36px 28px;
    }
}

@media (max-width: 900px) {
    .auth-layout-split {
        display: block;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 42px 28px;
    }

    .auth-brand {
        margin-bottom: 28px;
    }

    .auth-hero-title {
        font-size: 34px;
    }

    .auth-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .auth-form-panel {
        min-height: auto;
        padding: 40px 24px;
    }
}

@media (max-width: 640px) {
    .auth-layout-centered {
        padding: 20px 14px;
    }

    .auth-brand-panel {
        padding: 34px 20px;
    }

    .auth-brand-name {
        font-size: 20px;
    }

    .auth-hero-title {
        font-size: 29px;
    }

    .auth-hero-text {
        font-size: 14px;
        line-height: 1.65;
    }

    .auth-feature-list {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .auth-feature-text {
        font-size: 12px;
    }

    .auth-form-panel {
        padding: 30px 16px;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .auth-title {
        font-size: 25px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-social-buttons {
        grid-template-columns: 1fr;
    }

    .auth-business-types {
        grid-template-columns: 1fr;
    }

    .auth-otp {
        gap: 7px;
    }

    .auth-otp-input {
        width: 42px;
        height: 50px;
        font-size: 19px;
    }

    .auth-footer-links {
        gap: 7px 12px;
    }
}

@media (max-width: 380px) {
    .auth-form-panel {
        padding-left: 10px;
        padding-right: 10px;
    }

    .auth-card {
        padding: 20px 14px;
    }

    .auth-otp {
        gap: 5px;
    }

    .auth-otp-input {
        width: 39px;
        height: 47px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.auth-page button:focus-visible,
.auth-page a:focus-visible,
.auth-page input:focus-visible,
.auth-page select:focus-visible,
.auth-page textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

.auth-page input[aria-invalid="true"],
.auth-page select[aria-invalid="true"],
.auth-page textarea[aria-invalid="true"] {
    border-color: var(--color-danger, #dc2626);
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {
    .auth-brand-panel {
        display: none !important;
    }

    .auth-layout-split {
        display: block;
    }

    .auth-form-panel {
        min-height: auto;
        padding: 0;
    }

    .auth-card {
        border: 0;
        box-shadow: none;
    }

    .auth-submit,
    .auth-social-buttons,
    .auth-footer-links {
        display: none !important;
    }
}