/* =====================================================
   FASTIOR AUTH PAGES (Login, Register, Forgot, Reset)
   Clean White & Professional Fleet SaaS Theme
   ===================================================== */

html, body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    margin: 0;
    padding: 0;
}

[data-theme="dark"] .auth-page,
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 85% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 50%) !important;
    padding: 36px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a !important;
    box-sizing: border-box;
}

[data-theme="dark"] .auth-card,
.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03) !important;
    overflow: hidden;
}

.auth-card--wide {
    max-width: 580px;
}

.auth-card__header {
    text-align: center;
    padding: 36px 32px 16px;
}

.auth-card__header .fastior-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-card__header .fastior-logo__full {
    height: 44px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}

[data-theme="dark"] .auth-card__title,
.auth-card__title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

[data-theme="dark"] .auth-card__subtitle,
.auth-card__subtitle {
    font-size: 14px;
    color: #64748b !important;
    line-height: 1.5;
}

.auth-card__body {
    padding: 16px 32px 32px;
}

[data-theme="dark"] .auth-card__footer,
.auth-card__footer {
    padding: 18px 32px;
    border-top: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
    text-align: center;
    font-size: 13px;
    color: #64748b !important;
}

.auth-card__footer a {
    color: #2563eb !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-card__footer a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline;
}

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

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

[data-theme="dark"] .auth-form .form-label,
.auth-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155 !important;
    margin-bottom: 6px;
}

.auth-form .form-label--required::after {
    content: " *";
    color: #ef4444;
}

[data-theme="dark"] .auth-form .form-input,
.auth-form .form-input {
    width: 100%;
    padding: 10px 14px;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    color: #0f172a !important;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

[data-theme="dark"] .auth-form .form-input:focus,
.auth-form .form-input:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="dark"] .auth-form .form-input::placeholder,
.auth-form .form-input::placeholder {
    color: #94a3b8 !important;
}

.auth-form .form-input--error {
    border-color: #ef4444 !important;
    background: #fffafa !important;
}

.auth-form .form-input--error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.auth-form .form-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 5px;
}

.auth-form .btn--primary {
    width: 100%;
    padding: 12px;
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #1d4ed8 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-sizing: border-box;
}

.auth-form .btn--primary:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.auth-form .btn--secondary {
    width: 100%;
    padding: 12px;
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.auth-form .btn--secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.auth-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    font-size: 13px;
}

.auth-links a {
    color: #2563eb !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.auth-links a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline;
}

.auth-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.auth-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

/* =====================================================
   MULTI-STEP REGISTRATION WIZARD
   ===================================================== */
.auth-card--wizard {
    max-width: 530px;
    transition: all 0.3s ease;
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 4px 12px 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.wizard-progress__bar-bg {
    position: absolute;
    top: 22px;
    left: 45px;
    right: 45px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.wizard-progress__bar-fill {
    height: 100%;
    width: 0%;
    background: #2563eb;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px;
}

.wizard-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    text-decoration: none;
}

.wizard-step.is-clickable {
    cursor: pointer;
}

.wizard-step__circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.wizard-step.is-active .wizard-step__circle {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.wizard-step.is-completed .wizard-step__circle {
    border-color: #059669;
    background: #059669;
    color: #ffffff;
}

.wizard-step__label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 8px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.wizard-step.is-active .wizard-step__label {
    color: #2563eb;
    font-weight: 700;
}

.wizard-step.is-completed .wizard-step__label {
    color: #0f172a;
}

/* Step Panes */
.wizard-pane {
    display: none;
    animation: fadeInStep 0.28s ease forwards;
}

.wizard-pane.is-active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-pane__header {
    margin-bottom: 20px;
}

.wizard-pane__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.wizard-pane__title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.wizard-pane__desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Wizard Navigation Actions */
.wizard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.wizard-actions .btn {
    flex: 1;
}

.wizard-actions .btn--back {
    flex: 0 0 auto;
    width: auto;
    padding: 11px 18px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.wizard-actions .btn--back:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wizard-actions .btn--next,
.wizard-actions .btn--submit {
    flex: 1;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Summary Card in Step 3 */
.wizard-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.wizard-summary-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}

.wizard-summary-card__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0;
}

.wizard-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 5px 0;
}

.wizard-summary-item__label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizard-summary-item__val {
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 9999px;
}

/* Password field with toggle */
.input-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-toggle .form-input {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.password-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-hint.is-valid {
    color: #059669;
}

.password-hint.is-error {
    color: #dc2626;
}

.terms-notice {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 14px 0 0;
    text-align: center;
}

.terms-notice a {
    color: #2563eb;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .wizard-progress {
        padding: 0 4px 18px;
    }
    .wizard-progress__bar-bg {
        left: 24px;
        right: 24px;
    }
    .wizard-step__circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .wizard-step__label {
        font-size: 10px;
    }
    .wizard-pane__title {
        font-size: 17px;
    }
}

/* =====================================================
   HORIZONTAL SPLIT LAYOUT FOR LAPTOPS / DESKTOPS
   ===================================================== */
.auth-page--split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    box-sizing: border-box;
}

.auth-split-wrapper {
    display: flex;
    width: 100%;
    max-width: 1060px;
    min-height: 640px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 8px 20px -4px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
}

/* Left Showcase Panel (Laptops & Desktops) */
.auth-showcase {
    flex: 0 0 420px;
    background: linear-gradient(165deg, #091322 0%, #0d1e38 45%, #092852 100%);
    color: #ffffff;
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.auth-showcase::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.auth-showcase__header {
    position: relative;
    z-index: 2;
}

.auth-showcase__brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 20px;
}

.auth-showcase__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 10px;
}

.auth-showcase__subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0;
}

.auth-showcase__features {
    position: relative;
    z-index: 2;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 2px;
}

.auth-feature-content p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

.auth-showcase__footer {
    position: relative;
    z-index: 2;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #cbd5e1;
}

.auth-trust-badge__icon {
    color: #10b981;
    flex-shrink: 0;
}

/* Right Interactive Wizard Card */
.auth-wizard-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    box-sizing: border-box;
}

.auth-wizard-card__header {
    padding: 32px 36px 12px;
}

.auth-wizard-card__body {
    padding: 0 36px 28px;
    flex: 1;
}

.auth-wizard-card__footer {
    padding: 16px 36px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.auth-wizard-card__footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

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

/* Responsive Collapse for Tablets & Mobile */
@media (max-width: 991px) {
    .auth-split-wrapper {
        flex-direction: column;
        max-width: 530px;
        min-height: auto;
    }

    .auth-showcase {
        display: none;
    }

    .auth-wizard-card__header {
        padding: 32px 24px 12px;
    }

    .auth-wizard-card__body {
        padding: 0 24px 28px;
    }

    .auth-wizard-card__footer {
        padding: 16px 24px;
    }
}

/* OTP Verification UI Styles */
.otp-card-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.otp-card-banner__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.otp-card-banner__text {
    font-size: 13px;
    color: #1e40af;
    line-height: 1.45;
}

.otp-input-wrap {
    text-align: center;
    margin: 24px 0 16px;
}

.otp-input-field {
    font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 12px;
    text-align: center;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    color: #1e3a8a;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.otp-input-field:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    outline: none;
}

.otp-meta-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-top: 14px;
    padding: 0 6px;
}

.otp-action-link {
    background: none;
    border: none;
    padding: 0;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

.otp-action-link:hover {
    color: #1d4ed8;
}

.otp-action-link[disabled] {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}

/* Cloudflare Turnstile Container (Light Theme) */
.cf-turnstile-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0 18px;
    min-height: 65px;
    width: 100%;
}

.cf-turnstile-wrap .cf-turnstile {
    max-width: 100%;
}



