/**
 * FarmediaCloud - Unified Modern Authentication Design System
 * Modern SaaS Aesthetic: Sleek Slate & Sapphire, Glassmorphism, Micro-Interactions, Full Responsiveness
 */

:root {
    --auth-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --auth-bg: #f8fafc;
    --auth-bg-gradient: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
                        radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 45%),
                        #f8fafc;
    --auth-card-bg: #ffffff;
    --auth-text-main: #0f172a;
    --auth-text-muted: #64748b;
    --auth-text-subtle: #94a3b8;
    --auth-border: #e2e8f0;
    --auth-border-focus: #3b82f6;
    --auth-primary: #2563eb;
    --auth-primary-hover: #1d4ed8;
    --auth-primary-active: #1e40af;
    --auth-primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --auth-primary-glow: 0 4px 14px rgba(37, 99, 235, 0.28);
    --auth-primary-glow-hover: 0 6px 20px rgba(37, 99, 235, 0.38);
    --auth-input-bg: #ffffff;
    --auth-input-border: #cbd5e1;
    --auth-input-focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.15);
    --auth-left-bg: linear-gradient(140deg, #f8fafc 0%, #f0f7ff 40%, #e8f0fe 75%, #f5f3ff 100%);
    --auth-left-border: #e2e8f0;
    --auth-radius-sm: 8px;
    --auth-radius-md: 10px;
    --auth-radius-lg: 14px;
    --auth-radius-xl: 18px;
}

html[data-bs-theme="dark"] {
    --auth-bg: #090d16;
    --auth-bg-gradient: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
                        radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
                        #090d16;
    --auth-card-bg: #111827;
    --auth-text-main: #f8fafc;
    --auth-text-muted: #94a3b8;
    --auth-text-subtle: #64748b;
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-border-focus: #60a5fa;
    --auth-input-bg: #1e293b;
    --auth-input-border: #334155;
    --auth-input-focus-ring: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--auth-font);
    background: var(--auth-bg);
    color: var(--auth-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===== SPLIT SCREEN WRAPPER ===== */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: var(--auth-bg);
}

/* ===== FLOATING LANGUAGE SWITCHER ===== */
.auth-lang-floating {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1050;
}

.auth-lang-btn,
.auth-lang-floating .btn-light {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 9999px !important;
    padding: 6px 14px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.auth-lang-btn:hover,
.auth-lang-floating .btn-light:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}

html[data-bs-theme="dark"] .auth-lang-btn,
html[data-bs-theme="dark"] .auth-lang-floating .btn-light {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

html[data-bs-theme="dark"] .auth-lang-btn:hover,
html[data-bs-theme="dark"] .auth-lang-floating .btn-light:hover {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.auth-lang-floating .dropdown-menu {
    border: 1px solid var(--auth-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1) !important;
    padding: 6px !important;
    min-width: 170px !important;
    background: var(--auth-card-bg) !important;
}

.auth-lang-floating .dropdown-item {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: var(--auth-text-main) !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    transition: background-color 0.15s ease !important;
}

.auth-lang-floating .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--auth-primary) !important;
}

.auth-lang-floating .dropdown-item.active {
    background: rgba(37, 99, 235, 0.12) !important;
    color: var(--auth-primary) !important;
}

/* ===== LEFT PANEL (DESKTOP SHOWCASE) ===== */
.auth-left {
    flex: 0 0 42%;
    width: 42%;
    min-height: 100vh;
    background: var(--auth-left-bg) !important;
    border-right: 1px solid var(--auth-left-border) !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 3rem;
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* Glowing Ambient Floating Orbs (Subtle modern light SaaS glow) */
.auth-shape {
    position: absolute;
    border-radius: 50% !important;
    filter: blur(50px) !important;
    pointer-events: none;
    opacity: 0.65 !important;
    border: none !important;
    box-shadow: none !important;
    animation: authOrbFloat 12s ease-in-out infinite alternate !important;
}

.auth-shape:nth-child(1) {
    width: 320px !important;
    height: 320px !important;
    top: -60px !important;
    left: -60px !important;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%) !important;
    animation-duration: 9s !important;
}

.auth-shape:nth-child(2) {
    width: 280px !important;
    height: 280px !important;
    bottom: 5% !important;
    right: -40px !important;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%) !important;
    animation-duration: 12s !important;
}

.auth-shape:nth-child(3) {
    width: 220px !important;
    height: 220px !important;
    bottom: 25% !important;
    left: 8% !important;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 70%) !important;
    animation-duration: 10s !important;
}

.auth-shape:nth-child(4) {
    width: 180px !important;
    height: 180px !important;
    top: 30% !important;
    right: 12% !important;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.1) 0%, transparent 70%) !important;
    animation-duration: 14s !important;
}

@keyframes authOrbFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.08); }
    100% { transform: translateY(15px) scale(0.95); }
}

.auth-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.auth-brand-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    border-radius: var(--auth-radius-md) !important;
    padding: 9px 24px !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.01em !important;
    color: #0f172a !important;
    text-decoration: none !important;
    margin-bottom: 1.75rem !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.auth-brand-badge:hover {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09) !important;
    color: #2563eb !important;
}

/* ===== LOGO & BRAND DISPLAY (Clean Light SaaS Canvas) ===== */
.auth-logo-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
    max-width: 100% !important;
}

.auth-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.auth-logo-link:hover {
    transform: translateY(-2px) !important;
}

.auth-logo-capsule {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    padding: 4px 8px !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    max-width: 100% !important;
}

.auth-logo-capsule img,
.auth-logo-img,
.auth-left-content a > img,
.left-panel .auth-left-content a > img,
.auth-mobile-hero .auth-mobile-logo-link img {
    display: block !important;
    height: auto !important;
    max-height: 52px !important;
    width: auto !important;
    max-width: 260px !important;
    object-fit: contain !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.auth-mobile-logo-capsule {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
}

.auth-left-heading {
    font-weight: 800 !important;
    font-size: 2.15rem !important;
    line-height: 1.2 !important;
    color: #0f172a !important;
    margin-bottom: 0.85rem !important;
    letter-spacing: -0.03em !important;
    text-shadow: none !important;
}

.auth-left-sub {
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.75rem !important;
}

.auth-highlight-box,
.auth-info-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--auth-radius-lg) !important;
    padding: 13px 18px !important;
    color: #1e293b !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 auto 1.75rem auto !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    max-width: 380px !important;
}

.auth-features,
.auth-steps {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto 2rem auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: left !important;
    max-width: 360px !important;
}

.auth-features li,
.auth-steps li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    line-height: 1.4 !important;
}

.auth-features li i {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    background: #dbeafe !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
}

.auth-step-num {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #dbeafe !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.auth-icon-hero {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.5rem auto;
    border-radius: 18px;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.auth-left-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: var(--auth-radius-md) !important;
    padding: 9px 22px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.auth-left-cta:hover {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09) !important;
    color: #2563eb !important;
}

/* OTP Dot Visuals */
.auth-otp-visual,
.auth-mobile-otp-visual {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto 1.5rem auto !important;
}

.auth-otp-dot,
.auth-mobile-otp-dot {
    width: 40px !important;
    height: 48px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: var(--auth-radius-md) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
    animation: authDotPulse 2.4s ease-in-out infinite !important;
}

.auth-otp-dot:nth-child(1) { animation-delay: 0s !important; }
.auth-otp-dot:nth-child(2) { animation-delay: 0.2s !important; }
.auth-otp-dot:nth-child(3) { animation-delay: 0.4s !important; }
.auth-otp-dot:nth-child(4) { animation-delay: 0.6s !important; }
.auth-otp-dot:nth-child(5) { animation-delay: 0.8s !important; }
.auth-otp-dot:nth-child(6) { animation-delay: 1.0s !important; }

@keyframes authDotPulse {
    0%, 100% {
        transform: translateY(0);
        border-color: #cbd5e1;
        background: #ffffff;
    }
    50% {
        transform: translateY(-4px);
        border-color: #3b82f6;
        background: #eff6ff;
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
    }
}

.auth-secure-badges {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    text-align: left !important;
    margin: 0 auto 1.5rem auto !important;
    max-width: 360px !important;
}

.auth-secure-badge {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--auth-radius-md) !important;
    padding: 9px 14px !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    color: #1e293b !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.auth-secure-badge i {
    color: #2563eb !important;
    flex-shrink: 0 !important;
}

/* ===== RIGHT PANEL (FORM AREA) ===== */
.auth-right {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--auth-bg);
}

.auth-right-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.auth-form-card {
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-xl);
    padding: 2.5rem 2.25rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
    width: 100%;
    margin: auto 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Typography in Form */
.auth-title {
    font-weight: 800 !important;
    font-size: 1.75rem !important;
    letter-spacing: -0.025em !important;
    color: var(--auth-text-main) !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.25 !important;
}

.auth-subtitle {
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: var(--auth-text-muted) !important;
    margin-bottom: 1.75rem !important;
    line-height: 1.55 !important;
}

/* Form Groups & Inputs */
.auth-form-group,
.modern-form-group {
    margin-bottom: 1.25rem !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.auth-label,
.modern-label {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: var(--auth-text-main) !important;
    margin-bottom: 0.45rem !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.auth-label i,
.modern-label i {
    color: var(--auth-primary) !important;
    font-size: 0.8rem !important;
}

.auth-input,
.modern-input,
.auth-input.form-control {
    width: 100% !important;
    height: 46px !important;
    padding: 0.65rem 1rem !important;
    border: 1px solid var(--auth-input-border) !important;
    border-radius: var(--auth-radius-md) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: var(--auth-text-main) !important;
    background: var(--auth-input-bg) !important;
    background-color: var(--auth-input-bg) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    outline: none !important;
}

.auth-input:focus,
.modern-input:focus,
.auth-input.form-control:focus {
    border-color: var(--auth-border-focus) !important;
    background: var(--auth-input-bg) !important;
    background-color: var(--auth-input-bg) !important;
    box-shadow: var(--auth-input-focus-ring) !important;
    outline: none !important;
    transform: none !important;
}

.auth-input::placeholder,
.modern-input::placeholder {
    color: var(--auth-text-subtle) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

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

.auth-input-wrap .auth-input {
    padding-right: 44px !important;
}

.auth-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--auth-text-subtle) !important;
    cursor: pointer;
    padding: 8px !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    z-index: 5;
}

.auth-toggle-btn:hover {
    color: var(--auth-primary) !important;
    background: transparent !important;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
}

.auth-small-note {
    font-size: 0.75rem !important;
    color: var(--auth-text-muted) !important;
    margin-top: 0.35rem !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Big OTP Input */
.auth-otp-input,
.auth-otp-input.form-control,
input.auth-otp-input {
    width: 100% !important;
    height: 60px !important;
    padding: 0 1rem !important;
    border: 2px solid var(--auth-input-border) !important;
    border-radius: var(--auth-radius-lg) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    background: var(--auth-input-bg) !important;
    background-color: var(--auth-input-bg) !important;
    color: var(--auth-text-main) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    font-family: 'Space Grotesk', var(--auth-font), monospace !important;
    text-align: center !important;
    letter-spacing: 0.35em !important;
    -webkit-appearance: none;
}

.auth-otp-input:focus,
.auth-otp-input.form-control:focus,
input.auth-otp-input:focus {
    border-color: var(--auth-border-focus) !important;
    box-shadow: var(--auth-input-focus-ring) !important;
    transform: none !important;
}

.auth-resend-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1.25rem;
}

.auth-resend-btn {
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: var(--auth-primary) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: none !important;
    transition: color 0.15s ease !important;
}

.auth-resend-btn:hover {
    color: var(--auth-primary-hover) !important;
    text-decoration: underline !important;
    transform: none !important;
    box-shadow: none !important;
    background: none !important;
}

.auth-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 9999px;
    padding: 3px 10px;
}

/* Checkbox & Forgot Link Row */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.75rem 0 1.25rem 0;
    font-size: 0.8125rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-text-muted);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.auth-checkbox-label input[type="checkbox"],
.auth-terms-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1px solid var(--auth-input-border);
    cursor: pointer;
    accent-color: var(--auth-primary);
}

.auth-forgot-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-forgot-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

.auth-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 1rem 0 1.25rem 0;
    font-size: 0.8125rem;
    color: var(--auth-text-muted);
    line-height: 1.45;
}

.auth-terms-check a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* Turnstile Wrapper */
.auth-turnstile-wrapper {
    margin: 1.25rem 0;
    display: flex;
    justify-content: center;
}

/* Submit Buttons */
.auth-submit-btn,
.reset-btn,
.verify-btn,
button.auth-submit-btn {
    width: 100% !important;
    height: 48px !important;
    background: var(--auth-primary-gradient) !important;
    background-color: var(--auth-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--auth-radius-md) !important;
    box-shadow: var(--auth-primary-glow) !important;
    font-family: var(--auth-font) !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 0.75rem !important;
    text-decoration: none !important;
}

.auth-submit-btn:hover,
.reset-btn:hover,
.verify-btn:hover,
button.auth-submit-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--auth-primary-glow-hover) !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.auth-submit-btn:active,
.reset-btn:active,
.verify-btn:active,
button.auth-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

/* Google OAuth Button */
.auth-google-btn {
    width: 100% !important;
    height: 46px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--auth-radius-md) !important;
    padding: 0 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.auth-google-btn:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
}

.auth-google-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html[data-bs-theme="dark"] .auth-google-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

html[data-bs-theme="dark"] .auth-google-btn:hover {
    background: #243044 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

/* Dividers & Bottom Links */
.auth-divider {
    margin: 1.5rem 0 !important;
    border: none !important;
    border-top: 1px solid var(--auth-border) !important;
    opacity: 1 !important;
}

.auth-bottom-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    margin-top: 1.25rem;
}

.auth-bottom-link a {
    font-weight: 600;
    color: var(--auth-primary);
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.auth-bottom-link a:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

.auth-security-note {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--auth-radius-md);
    padding: 12px 14px;
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 1.25rem;
    line-height: 1.45;
}

.auth-security-note i {
    color: var(--auth-primary);
    margin-top: 2px;
}

/* Password Match & Strength */
.password-match-indicator {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.password-strength {
    margin-top: 0.6rem;
    font-size: 0.8rem;
}

.strength-indicator {
    height: 5px;
    border-radius: 999px;
    margin-top: 5px;
    transition: all 0.3s ease;
    background: #e2e8f0;
}

.strength-weak { background: #ef4444 !important; width: 25%; }
.strength-fair { background: #f59e0b !important; width: 50%; }
.strength-good { background: #3b82f6 !important; width: 75%; }
.strength-strong { background: #10b981 !important; width: 100%; }

.password-requirements {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-md);
    padding: 12px 14px;
    margin-top: 1rem;
    font-size: 0.8rem;
}

html[data-bs-theme="dark"] .password-requirements {
    background: rgba(255, 255, 255, 0.02);
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--auth-text-muted);
}

.requirement.met {
    color: #10b981 !important;
}

.requirement i {
    font-size: 0.75rem;
    width: 14px;
}

/* ===== CENTERED CARD LAYOUT (VERIFY & RESET PAGES) ===== */
.modern-verify-container,
.modern-reset-container {
    background: var(--auth-bg-gradient) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.verify-card,
.reset-card {
    background: var(--auth-card-bg) !important;
    border: 1px solid var(--auth-border) !important;
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.07), 0 10px 15px -5px rgba(15, 23, 42, 0.03) !important;
    border-radius: var(--auth-radius-xl) !important;
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.verify-card:hover,
.reset-card:hover {
    box-shadow: 0 25px 45px -5px rgba(15, 23, 42, 0.1), 0 12px 20px -6px rgba(15, 23, 42, 0.04) !important;
    transform: translateY(-2px) !important;
}

.verify-card .left-panel,
.reset-card .left-panel {
    background: var(--auth-left-bg) !important;
    border-right: 1px solid var(--auth-left-border) !important;
    border-bottom: none !important;
    color: #0f172a !important;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
}

.verify-card .left-panel *,
.reset-card .left-panel * {
    color: inherit;
}

.verify-card .left-panel h4,
.reset-card .left-panel h4 {
    color: #0f172a !important;
}

.verify-card .left-panel p,
.reset-card .left-panel p {
    color: #475569 !important;
}

.reset-card .left-panel .security-info {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

.reset-card .left-panel .security-info * {
    color: #334155 !important;
}

.verify-card .form-section,
.reset-card .form-section {
    padding: 3rem 2.5rem !important;
    background: var(--auth-card-bg) !important;
}

.verify-card .form-title,
.reset-card .form-title {
    font-weight: 800 !important;
    font-size: 1.75rem !important;
    color: var(--auth-text-main) !important;
    margin-bottom: 0.35rem !important;
    letter-spacing: -0.025em !important;
}

.verify-card .form-subtitle,
.reset-card .form-subtitle {
    font-size: 0.875rem !important;
    color: var(--auth-text-muted) !important;
    margin-bottom: 1.75rem !important;
}

.security-info,
.security-guidelines {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: var(--auth-radius-md) !important;
    padding: 14px 18px !important;
    margin: 1.25rem 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Back link */
.back-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.back-link a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.back-link a:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* ===== MOBILE HERO BANNER (ONLY ON SCREENS < 992px) ===== */
.auth-mobile-hero {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-mobile-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.auth-mobile-appname {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--auth-text-main);
}

.auth-mobile-tagline {
    font-size: 0.875rem;
    color: var(--auth-text-muted);
}

.auth-mobile-hero-bonus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 9999px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--auth-primary);
}

.auth-mobile-hero-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.auth-mobile-hero-step {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--auth-text-muted);
    background: rgba(15, 23, 42, 0.04);
    border-radius: 9999px;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-mobile-hero-step .step-num {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--auth-primary);
    color: #fff;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 991.98px) {
    .auth-left {
        display: none !important;
    }

    .auth-mobile-hero {
        display: block !important;
    }

    .auth-right {
        min-height: 100vh;
        width: 100%;
        padding: 1.5rem 1rem;
        background: var(--auth-bg-gradient);
    }

    .auth-right-inner {
        max-width: 460px;
        padding: 1rem 0;
    }

    .auth-form-card {
        padding: 2rem 1.5rem;
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
    }

    .verify-card .left-panel,
    .reset-card .left-panel {
        display: none !important;
    }

    .verify-card .form-section,
    .reset-card .form-section {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .auth-right {
        padding: 1rem 0.75rem;
    }

    .auth-form-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--auth-radius-lg);
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-title {
        font-size: 1.5rem !important;
    }

    .auth-subtitle {
        font-size: 0.8125rem !important;
        margin-bottom: 1.25rem !important;
    }

    .auth-lang-floating {
        top: 0.75rem;
        right: 0.75rem;
    }

    .auth-lang-btn {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }

    .auth-otp-input,
    input.auth-otp-input {
        height: 52px !important;
        font-size: 1.65rem !important;
        letter-spacing: 0.25em !important;
    }
}
