/* ═══════════════════════════════════════════════════════════════
   FRESHZONE AUTH · PREMIUM UPGRADE v4.0
   Cooler, more professional glassmorphism + micro-interactions
   Loads after style.css — safe overrides only
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. AUTH WRAPPER — critical fixes ────────────────────────────
   • background: transparent so body's bodyPan animation shows through
   • overflow: visible (NOT hidden) — hidden clips fixed pseudo-elements
     into rectangles on mobile/Safari, causing the rectangular crop bug
   • position: relative is kept (from style-v2) but we prevent it from
     creating a new stacking context that traps position:fixed children
     by NOT using transform/filter on the wrapper itself
   ─────────────────────────────────────────────────────────────────── */
.auth-wrapper {
    background: transparent !important;
    overflow: visible !important;   /* CRITICAL: kills the rectangle clip */
}

/* ── PSEUDO-ELEMENT RESET ─────────────────────────────────────────
   style-v2.css uses .auth-wrapper::before for a cursor halo (position:fixed,
   left:var(--cx), top:var(--cy)). That conflicts with our orb.
   We neutralise both ::before and ::after here so nothing clips or fights.
   The actual orb effect is rendered via real DOM divs in the smoke-container
   (injected by auth-style itself via JS below, or via the HTML smoke divs).
   ─────────────────────────────────────────────────────────────────── */
.auth-wrapper::before,
.auth-wrapper::after {
    content: none !important;
    display: none !important;
}

/* Also suppress the cursor halo rule from style-v2 on desktop */
@media (hover: hover) and (pointer: fine) {
    .auth-wrapper::before {
        content: none !important;
        display: none !important;
    }
}

/* ── REAL-DOM ORB DIVS (injected by script at bottom of auth-style) ──
   .auth-orb elements are position:fixed, NOT inside any transformed
   ancestor, so they render full-viewport correctly on ALL browsers.
   ─────────────────────────────────────────────────────────────────── */
.auth-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
}

/* Orb 1 — large white/cyan glass sphere, top-left (the mobile look) */
.auth-orb-1 {
    width: 65vw;
    height: 65vw;
    max-width: 700px;
    max-height: 700px;
    top: -20vw;
    left: -18vw;
    background: radial-gradient(circle at 35% 38%,
        rgba(255,255,255,0.32) 0%,
        rgba(180,240,255,0.22) 22%,
        rgba(0,180,216,0.12) 48%,
        transparent 72%);
    animation: orbFloat1 20s ease-in-out infinite alternate;
    opacity: 0.90;
}
@keyframes orbFloat1 {
    0%   { transform: translate(0,     0   ) scale(1);    opacity: 0.90; }
    40%  { transform: translate(2%,   -3%  ) scale(1.04); opacity: 1.00; }
    70%  { transform: translate(-1.5%, 2%  ) scale(1.06); opacity: 0.88; }
    100% { transform: translate(1%,   -1.5%) scale(1.02); opacity: 0.94; }
}

/* Orb 2 — deep navy/teal sphere, bottom-right */
.auth-orb-2 {
    width: 55vw;
    height: 55vw;
    max-width: 600px;
    max-height: 600px;
    bottom: -18vw;
    right: -15vw;
    background: radial-gradient(circle at 60% 62%,
        rgba(0,40,80,0.50) 0%,
        rgba(0,90,150,0.30) 30%,
        rgba(0,180,216,0.12) 55%,
        transparent 75%);
    animation: orbFloat2 26s ease-in-out infinite alternate;
    opacity: 0.85;
}
@keyframes orbFloat2 {
    0%   { transform: translate(0,     0   ) scale(1);    opacity: 0.85; }
    35%  { transform: translate(-2%,   2%  ) scale(1.05); opacity: 0.95; }
    70%  { transform: translate(1.5%, -1.5%) scale(1.03); opacity: 0.88; }
    100% { transform: translate(-1%,   1%  ) scale(1.01); opacity: 0.92; }
}

/* Orb 3 — small right-edge accent highlight */
.auth-orb-3 {
    width: 35vw;
    height: 35vw;
    max-width: 400px;
    max-height: 400px;
    top: 15%;
    right: -8vw;
    background: radial-gradient(circle at 50% 50%,
        rgba(0,200,230,0.18) 0%,
        rgba(14,207,239,0.08) 45%,
        transparent 70%);
    animation: orbFloat3 32s ease-in-out infinite alternate;
    opacity: 0.70;
}
@keyframes orbFloat3 {
    0%   { transform: translate(0,   0  ) scale(1);    opacity: 0.70; }
    50%  { transform: translate(-3%, 4% ) scale(1.08); opacity: 0.85; }
    100% { transform: translate(2%, -2% ) scale(0.96); opacity: 0.72; }
}

/* Dark mode orb adjustments */
[data-theme="dark"] .auth-orb-1 {
    background: radial-gradient(circle at 35% 38%,
        rgba(34,211,238,0.16) 0%,
        rgba(125,211,252,0.10) 25%,
        rgba(34,211,238,0.04) 50%,
        transparent 72%);
    opacity: 0.80;
}
[data-theme="dark"] .auth-orb-2 {
    background: radial-gradient(circle at 60% 62%,
        rgba(0,20,40,0.70) 0%,
        rgba(0,50,90,0.40) 35%,
        transparent 65%);
    opacity: 0.80;
}
[data-theme="dark"] .auth-orb-3 { opacity: 0.40; }

/* ── SPECULAR PARTICLE LAYER — also on a real DOM div ────────── */
.auth-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(circle 2px   at 20% 30%, rgba(255,255,255,0.75) 0%, transparent 50%),
        radial-gradient(circle 1.5px at 75% 68%, rgba(0,200,230,0.60)   0%, transparent 50%),
        radial-gradient(circle 1px   at 10% 88%, rgba(14,207,239,0.65)  0%, transparent 50%),
        radial-gradient(circle 1px   at 58% 18%, rgba(255,255,255,0.40) 0%, transparent 50%),
        radial-gradient(circle 1.5px at 45% 55%, rgba(0,180,216,0.45)   0%, transparent 50%);
    background-size: 100px 100px, 130px 130px, 90px 90px, 115px 115px, 80px 80px;
    background-position: 0 0, 40px 60px, 80px 20px, 20px 80px, 60px 35px;
    animation: particleDrift 28s linear infinite;
    opacity: 0.42;
    will-change: background-position;
}
@keyframes particleDrift {
    from { background-position: 0 0,        40px 60px,   80px 20px,   20px 80px,   60px 35px; }
    to   { background-position: 100px 100px, 170px 190px, 170px 110px, 135px 195px, 140px 115px; }
}
[data-theme="dark"] .auth-particles { opacity: 0.15; }

/* ── 2. AUTH HEADER — ELEVATED TYPOGRAPHY + GLOW ─────────────── */
.auth-header h1 {
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.05em !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.9) 40%, #e0f7ff 100%);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.25)) drop-shadow(0 0 20px rgba(0,180,216,0.3));
    position: relative;
}
.auth-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00c8e6, transparent);
    border-radius: 2px;
    opacity: 0.7;
}
[data-theme="dark"] .auth-header h1 {
    background: linear-gradient(135deg, #f8fafc 0%, #22d3ee 60%, #7dd3fc 100%);
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4)) drop-shadow(0 0 25px rgba(34,211,238,0.4));
}
[data-theme="dark"] .auth-header h1::after { background: linear-gradient(90deg, transparent, #22d3ee, transparent); }

.auth-header p {
    color: rgba(255,255,255,0.88) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    backdrop-filter: blur(10px);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    display: inline-block;
    margin-top: 0.75rem;
}
[data-theme="dark"] .auth-header p { background: rgba(34,211,238,0.06); }

/* Trust badges — glassy orbs */
.auth-trust-badge {
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 16px !important;
    padding: 6px 14px 6px 11px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}
.auth-trust-badge:hover {
    transform: translateY(-2px) scale(1.05) !important;
    background: rgba(255,255,255,0.20) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
}
.auth-trust-badge svg {
    width: 12px !important;
    height: 12px !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
[data-theme="dark"] .auth-trust-badge {
    background: rgba(34,211,238,0.08) !important;
    border-color: rgba(34,211,238,0.20) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45), inset 0 1px 0 rgba(34,211,238,0.15);
}

/* ── 3. AUTH CARD — MULTI-LAYER GLASS + REFLECTIONS ─────────── */
.auth-card {
    background: rgba(248,253,255,0.92) !important;
    backdrop-filter: blur(32px) saturate(200%) brightness(1.02) !important;
    border: 1px solid rgba(255,255,255,0.85) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.25),
        0 40px 90px rgba(0,40,100,0.25),
        0 12px 32px rgba(0,0,0,0.10),
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -1px 0 rgba(0,120,180,0.06) !important;
    border-radius: 28px !important;
    padding: 2.5rem 2.5rem 2.25rem !important;
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 120% 20%, rgba(14,207,239,0.08) 0%, transparent 50%),
        radial-gradient(circle at -20% 80%, rgba(0,180,216,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.auth-card > * { position: relative; z-index: 2; }

/* Enhanced shimmer bar */
.auth-card > .brand-section::before,
.auth-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #00b4d8 20%, #0ecfef 50%, #00b4d8 80%, transparent 100%);
    border-radius: 0 0 4px 4px;
    animation: shimmerPremium 4s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0,180,216,0.4);
}
@keyframes shimmerPremium {
    0%, 100% { opacity: 0.7; transform: scaleX(0.9) translateX(-10%); }
    50% { opacity: 1; transform: scaleX(1.05) translateX(0); }
}

[data-theme="dark"] .auth-card {
    background: rgba(6,16,30,0.96) !important;
    backdrop-filter: blur(32px) saturate(180%) brightness(1.05) !important;
    border: 1px solid rgba(34,211,238,0.16) !important;
    box-shadow:
        0 0 0 1px rgba(34,211,238,0.12),
        0 40px 90px rgba(0,0,0,0.65),
        0 12px 32px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(34,211,238,0.12),
        inset 0 -1px 0 rgba(0,0,0,0.4) !important;
}
[data-theme="dark"] .auth-card::before {
    background: 
        radial-gradient(circle at 120% 20%, rgba(34,211,238,0.06) 0%, transparent 50%),
        radial-gradient(circle at -20% 80%, rgba(125,211,252,0.04) 0%, transparent 50%);
}
[data-theme="dark"] .auth-card::after {
    background: linear-gradient(90deg, transparent, #22d3ee, #38bdf8, #22d3ee, transparent);
}

/* Logo glow */
.auth-logo {
    filter: drop-shadow(0 8px 24px rgba(0,78,122,0.25)) drop-shadow(0 0 20px rgba(0,180,216,0.3));
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
}
.auth-logo:hover {
    transform: scale(1.08) rotate(5deg) !important;
    filter: drop-shadow(0 12px 32px rgba(0,78,122,0.35)) drop-shadow(0 0 32px rgba(0,180,216,0.5));
}
[data-theme="dark"] .auth-logo {
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)) drop-shadow(0 0 24px rgba(34,211,238,0.4));
}
[data-theme="dark"] .auth-logo:hover {
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(34,211,238,0.6));
}

/* ── 4. TAB SWITCHER — GEM-LIKE PILLS ────────────────────────── */
.auth-tabs {
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    border-radius: 16px !important;
    padding: 6px !important;
    margin-bottom: 1.75rem !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}
.auth-tab {
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 0 !important;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
    position: relative;
    overflow: hidden;
}
.auth-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 0.3s;
}
.auth-tab:hover::before { opacity: 1; }
.auth-tab.active {
    background: rgba(255,255,255,0.95) !important;
    color: #004e7a !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 12px 32px rgba(0,78,122,0.25),
        0 4px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,1),
        0 0 0 1px rgba(255,255,255,0.8) !important;
    font-weight: 800 !important;
}
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #00b4d8, #0ecfef);
    border-radius: 1px;
}
[data-theme="dark"] .auth-tabs {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(34,211,238,0.15) !important;
}
[data-theme="dark"] .auth-tab.active {
    background: rgba(34,211,238,0.15) !important;
    color: #22d3ee !important;
    box-shadow: 
        0 12px 32px rgba(0,0,0,0.5),
        0 4px 12px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(34,211,238,0.2) !important;
}

/* ── 5. INPUT FIELDS — NEOMORPHIC + GLOW FOCUS ──────────────── */
.auth-form-content .input-group {
    margin-bottom: 1rem !important;
    position: relative;
}
.auth-form-content input,
.auth-form-content select {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(12px) !important;
    border: 2px solid rgba(0,100,160,0.20) !important;
    border-radius: 16px !important;
    color: #002c45 !important;
    font-weight: 500 !important;
    padding: 1rem 1.1rem !important;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(0,120,180,0.08);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
}
.auth-form-content input:hover {
    border-color: rgba(0,180,216,0.4) !important;
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,1),
        inset 0 -1px 0 rgba(0,180,216,0.12);
    transform: translateY(-1px);
}
.auth-form-content input:focus,
.auth-form-content select:focus {
    border-color: #00b4d8 !important;
    box-shadow: 
        0 0 0 4px rgba(0,180,216,0.20),
        0 8px 28px rgba(0,78,122,0.25),
        inset 0 1px 0 rgba(255,255,255,1),
        0 0 24px rgba(0,180,216,0.25) !important;
    transform: translateY(-2px) !important;
    background: rgba(255,255,255,0.98) !important;
}
.auth-form-content input::placeholder {
    color: rgba(0,60,100,0.5) !important;
    font-weight: 400 !important;
}
.auth-form-content input.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.20), 0 4px 16px rgba(239,68,68,0.25) !important;
    animation: shake 0.5s cubic-bezier(0.36,0.07,0.19,0.97) both;
}
@keyframes shake {
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

[data-theme="dark"] .auth-form-content input,
[data-theme="dark"] .auth-form-content select {
    background: rgba(12,28,48,0.92) !important;
    border-color: rgba(34,211,238,0.22) !important;
    color: #e8f4fc !important;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(34,211,238,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.5);
}
[data-theme="dark"] .auth-form-content input:hover {
    border-color: rgba(34,211,238,0.45) !important;
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(34,211,238,0.25);
}
[data-theme="dark"] .auth-form-content input:focus {
    border-color: #22d3ee !important;
    box-shadow: 
        0 0 0 4px rgba(34,211,238,0.25),
        0 8px 28px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(34,211,238,0.3),
        0 0 28px rgba(34,211,238,0.3) !important;
}

/* Password eye button — glassy orb (FIXED hover overflow) */
.auth-form-content .input-password-wrap {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}
.auth-form-content .input-group {
    overflow: hidden !important;
}
.eye-btn {
    background: rgba(255,255,255,0.25) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    width: 36px !important;
    height: 36px !important;
    right: 0.85rem !important;
}
.eye-btn:hover {
    background: rgba(255,255,255,0.35) !important;
    box-shadow: 0 6px 20px rgba(0,180,216,0.3), 0 2px 8px rgba(0,0,0,0.2) !important;
    animation: eyePulse 1.5s ease-in-out infinite !important;
}
@keyframes eyePulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(0,180,216,0.3), 0 2px 8px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 0 0 8px rgba(0,180,216,0.15), 0 6px 20px rgba(0,180,216,0.3); }
}
[data-theme="dark"] .eye-btn {
    background: rgba(34,211,238,0.15) !important;
    border-color: rgba(34,211,238,0.25) !important;
}

/* Labels — premium typography */
.auth-form-content label {
    color: #002c45 !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    position: relative;
}
.auth-form-content label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 32px;
    height: 1.5px;
    background: linear-gradient(90deg, #00b4d8, transparent);
    opacity: 0.6;
}
[data-theme="dark"] .auth-form-content label {
    color: #94a3b8 !important;
}
[data-theme="dark"] .auth-form-content label::after { background: linear-gradient(90deg, #22d3ee, transparent); }

/* ── 6. BUTTONS — LIQUID METAL EFFECT ────────────────────────── */
.auth-form-content .btn-primary,
.auth-form-content button.btn-primary {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #004e7a 0%, #006fa3 40%, #00b4d8 100%) !important;
    border-radius: 16px !important;
    padding: 1.05rem 1.75rem !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.015em !important;
    box-shadow: 
        0 12px 36px rgba(0,78,122,0.45),
        0 4px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.25) !important;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1) !important;
}
.auth-form-content .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}
.auth-form-content .btn-primary:hover::before { left: 100%; }
.auth-form-content .btn-primary:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 
        0 20px 48px rgba(0,180,216,0.55),
        0 8px 20px rgba(0,0,0,0.20),
        inset 0 1px 0 rgba(255,255,255,0.35) !important;
    filter: brightness(1.08) !important;
}
.auth-form-content .btn-primary:active {
    transform: translateY(-2px) scale(0.98) !important;
    transition: all 0.15s !important;
}

.auth-form-content .btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #22c55e 100%) !important;
    box-shadow: 0 12px 36px rgba(22,163,74,0.45) !important;
}
.auth-form-content .btn-success:hover {
    box-shadow: 0 20px 48px rgba(22,163,74,0.55) !important;
    filter: brightness(1.1) !important;
}

/* Resend buttons — subtle glass */
#signup-resend-btn,
#reset-resend-btn {
    background: rgba(255,255,255,0.15) !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
}
#signup-resend-btn:hover,
#reset-resend-btn:hover {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}
[data-theme="dark"] #signup-resend-btn,
[data-theme="dark"] #reset-resend-btn {
    background: rgba(34,211,238,0.12) !important;
    border-color: rgba(34,211,238,0.25) !important;
    color: #94a3b8 !important;
}

/* ── 7. SPECIAL ELEMENTS ─────────────────────────────────────── */
.pw-strength-bar {
    height: 4px !important;
    border-radius: 4px !important;
    background: rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.pw-strength-label {
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
}

.email-sent-banner {
    background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(16,163,74,0.08)) !important;
    border: 1.5px solid rgba(22,163,74,0.25) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(22,163,74,0.20);
}
.email-sent-icon svg { filter: drop-shadow(0 2px 8px rgba(22,163,74,0.4)); }

.otp-box {
    border-top: 1px solid rgba(0,100,160,0.15) !important;
    padding-top: 1.5rem !important;
    position: relative;
}
.otp-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,180,216,0.4), transparent);
}
[data-theme="dark"] .otp-box::before { background: linear-gradient(90deg, transparent, rgba(34,211,238,0.3), transparent); }

.otp-timer {
    background: rgba(239,68,68,0.12) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239,68,68,0.25) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 0.45rem 0.85rem !important;
}

/* Links */
.text-link {
    color: #00b4d8 !important;
    font-weight: 700 !important;
    position: relative;
}
.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00b4d8, #0ecfef);
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.text-link:hover::after { width: 100%; }
[data-theme="dark"] .text-link { color: #38bdf8 !important; }

/* Dark toggle — crystal orb */
#auth-dark-toggle {
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(16px) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 16px !important;
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
}
#auth-dark-toggle:hover {
    transform: rotate(180deg) scale(1.1) !important;
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.5) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.4) !important;
}
[data-theme="dark"] #auth-dark-toggle {
    background: rgba(34,211,238,0.15) !important;
    border-color: rgba(34,211,238,0.3) !important;
}

/* Footer polish */
.auth-footer {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
}
.auth-footer a {
    color: rgba(0,180,216,0.95) !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
}
.auth-footer a:hover { color: #ffffff !important; }

/* ── 8. RESPONSIVE + PERFORMANCE ──────────────────────────────── */
@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.75rem 1.75rem !important; border-radius: 24px !important; }
    .auth-header h1 { font-size: 2rem !important; }
    .auth-tabs { padding: 5px !important; }
    .auth-tab { padding: 0.55rem 0 !important; font-size: 0.85rem !important; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* High-performance GPU acceleration */
.auth-card,
.auth-tab.active,
.auth-form-content input:focus,
.auth-form-content .btn-primary,
.auth-trust-badge,
#auth-dark-toggle,
.auth-logo {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   END PREMIUM UPGRADE — Professional, cool, smooth, error-free
   ═══════════════════════════════════════════════════════════════ */


/* ── AUTH SMOKE PARTICLES — more visible, tinted cyan/blue ────── */
.auth-wrapper .smoke-container {
    opacity: 0.55 !important;   /* was 0.3 — now clearly visible */
    z-index: 2 !important;
}
.auth-wrapper .smoke-particle {
    background: radial-gradient(circle,
        rgba(0,180,216,0.45) 0%,
        rgba(14,207,239,0.20) 40%,
        transparent 70%
    ) !important;
    filter: blur(18px) !important;
}

/* ── MOBILE (< 540px) — layout + performance tuning ─────────── */
@media (max-width: 540px) {
    /* Ensure viewport fills correctly on iOS */
    .auth-wrapper { min-height: 100dvh !important; }

    /* Orb 1 — reposition so it sits clearly in top-left on narrow screens */
    .auth-orb-1 {
        width: 90vw;
        height: 90vw;
        top: -30vw;
        left: -25vw;
    }
    /* Orb 2 — scale back slightly for mobile */
    .auth-orb-2 {
        width: 75vw;
        height: 75vw;
        bottom: -25vw;
        right: -20vw;
    }
    /* Orb 3 — hide on very small screens (saves overdraw) */
    .auth-orb-3 { opacity: 0 !important; }

    /* Lighter particles on mobile */
    .auth-particles { opacity: 0.28 !important; }

    /* Smoke rising particles */
    .auth-wrapper .smoke-container { opacity: 0.45 !important; }
}
