*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    background: #050816;
    overflow: hidden;
}

/* ═══════════════════════════════════════
   LEFT PANEL — Immersive 3D Brand Side
   ═══════════════════════════════════════ */
.auth-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    background: linear-gradient(160deg, #050816 0%, #0a1628 20%, #111d3a 50%, #1a2a52 80%, #243b6e 100%);
    position: relative;
    overflow: hidden;
}

/* Animated mesh gradient blobs */
.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.auth-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -15%;
    right: -10%;
    animation: blobMove1 12s ease-in-out infinite;
}

.auth-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: blobMove2 15s ease-in-out infinite;
}

.auth-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: blobMove3 10s ease-in-out infinite;
}

@keyframes blobMove1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 30px) scale(1.15);
    }

    66% {
        transform: translate(20px, -20px) scale(0.9);
    }
}

@keyframes blobMove2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes blobMove3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-30px, -20px) scale(1.2);
        opacity: 0.6;
    }
}

/* Grid lines overlay */
.auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Floating particles — glowing dots */
.auth-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.auth-dot {
    position: absolute;
    border-radius: 50%;
    background: #6366f1;
    animation: dotFloat linear infinite;
}

.auth-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    filter: blur(6px);
    opacity: 0.4;
}

@keyframes dotFloat {
    0% {
        transform: translateY(110vh) scale(0);
        opacity: 0;
    }

    5% {
        opacity: 1;
        transform: translateY(105vh) scale(1);
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* Orbit rings */
.auth-orbit {
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.auth-orbit-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 30s linear infinite;
}

.auth-orbit-2 {
    width: 550px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 45s linear infinite reverse;
}

.auth-orbit-1::after,
.auth-orbit-2::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #818cf8;
    top: -4px;
    left: 50%;
    box-shadow: 0 0 12px #818cf8, 0 0 24px rgba(129, 140, 248, 0.3);
    animation: orbitDotPulse 2s ease-in-out infinite;
}

.auth-orbit-2::after {
    background: #06b6d4;
    box-shadow: 0 0 12px #06b6d4, 0 0 24px rgba(6, 182, 212, 0.3);
    animation-delay: 1s;
}

@keyframes orbitSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbitDotPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.6);
    }
}

/* Brand content */
.auth-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 420px;
}

.auth-logo-wrap {
    width: 150px;
    height: 150px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    animation: logoEntrance 1s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

/* Hex border — outer shape (the visible neon stroke) */
.auth-logo-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg, #38bdf8, #3b82f6, #6366f1);
    animation: hexPulse 3s ease-in-out infinite alternate;
}

/* Hex inner — dark cutout (makes it look like a thin border) */
.auth-logo-wrap::after {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #050816;
    z-index: 0;
}

/* Soft outer glow — blurred hex behind */
.auth-hex-glow {
    position: absolute;
    inset: -6px;
    z-index: -1;
}

.auth-hex-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg, #38bdf8, #3b82f6, #6366f1);
    filter: blur(16px);
    opacity: 0.5;
    animation: hexPulse 3s ease-in-out infinite alternate;
}

/* Second deeper glow layer */
.auth-hex-glow::after {
    content: '';
    position: absolute;
    inset: -8px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.15), rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.15));
    filter: blur(30px);
    animation: hexPulse 3s ease-in-out infinite alternate-reverse;
}

/* Traveling bright light dot along hex edges */
.auth-hex-light {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.auth-hex-light span {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px 4px rgba(56, 189, 248, 0.9), 0 0 20px 8px rgba(59, 130, 246, 0.5), 0 0 40px 16px rgba(99, 102, 241, 0.2);
    animation: hexTravel 5s linear infinite;
}

.auth-hex-light span:nth-child(2) {
    animation-delay: -2.5s;
    opacity: 0.6;
    width: 8px;
    height: 8px;
}

@keyframes hexPulse {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Light travels along the 6 vertices of the hex */
@keyframes hexTravel {
    0% {
        top: 0%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    16.66% {
        top: 25%;
        left: 100%;
        transform: translate(-50%, -50%);
    }

    33.33% {
        top: 75%;
        left: 100%;
        transform: translate(-50%, -50%);
    }

    50% {
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    66.66% {
        top: 75%;
        left: 0%;
        transform: translate(-50%, -50%);
    }

    83.33% {
        top: 25%;
        left: 0%;
        transform: translate(-50%, -50%);
    }

    100% {
        top: 0%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.auth-logo {
    width: 150px;
    position: relative;
    z-index: 2;
    /* filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(99, 130, 246, 0.5)) drop-shadow(0 0 30px rgba(6, 182, 212, 0.2)); */
}

.auth-brand h1 {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    animation: textReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.auth-brand-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin-bottom: 36px;
    animation: textReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Stat cards row */
.auth-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    animation: textReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.auth-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 110px;
}

.auth-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.auth-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.auth-stat-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.auth-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.auth-stat-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

/* Trust badges */
.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    animation: textReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
}

.auth-trust-item svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════
   RIGHT PANEL — Glass Form
   ═══════════════════════════════════════ */
.auth-form-panel {
    width: 500px;
    min-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle top-right gradient accent */
.auth-form-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.auth-form-wrap {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

/* Staggered field entrance */
.auth-form-header {
    animation: fieldIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.auth-field:nth-child(1) {
    animation: fieldIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.auth-field:nth-child(2) {
    animation: fieldIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.auth-forgot {
    animation: fieldIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.auth-btn {
    animation: fieldIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.auth-footer {
    animation: fieldIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes fieldIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-header {
    margin-bottom: 36px;
}

.auth-greeting {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-greeting-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
    animation: greetDotPulse 1.5s ease-in-out infinite;
}

@keyframes greetDotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.auth-form-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.auth-form-header p {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Fields */
.auth-field {
    margin-bottom: 22px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374155;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.25s ease;
    border-right: 1.5px solid #e2e8f0;
    border-radius: 12px 0 0 12px;
    background: #f1f5f9;
}

.auth-input-wrap input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 48px 0 60px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
}

.auth-input-wrap input::placeholder {
    color: #b0bec5;
    font-weight: 400;
}

.auth-input-wrap input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(99, 102, 241, 0.1);
}

.auth-input-wrap input:focus+.auth-input-icon {
    color: #6366f1;
    background: #eef2ff;
    border-right-color: #c7d2fe;
}

.auth-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.2s ease;
    border-radius: 6px;
}

.auth-pw-toggle:hover {
    color: #6366f1;
    background: #eef2ff;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    font-weight: 500;
    animation: errorShake 0.4s ease;
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.auth-forgot {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
    margin-top: -10px;
}

.auth-forgot a {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.auth-forgot a:hover {
    color: #4338ca;
    background: #eef2ff;
}

/* Button */
.auth-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4338ca, #6366f1, #818cf8);
    background-size: 200% 200%;
    animation: btnGradient 4s ease infinite;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

@keyframes btnGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4), 0 4px 12px rgba(99, 102, 241, 0.2);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

.auth-btn-arrow {
    transition: transform 0.3s ease;
}

.auth-btn:hover .auth-btn-arrow {
    transform: translateX(4px);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Security badge */
.auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    margin-top: 16px;
}

.auth-security svg {
    color: #059669;
}

.auth-security span {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

/* Footer */
.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 11px;
    color: #b0bec5;
}

/* ═══════════════════════════════════════
   PREMIUM ANIMATIONS
   ═══════════════════════════════════════ */

/* Floating hexagon wireframes in background */
.auth-hex-bg {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    stroke: rgba(99, 102, 241, 0.06);
    fill: none;
    stroke-width: 1;
}
.auth-hex-bg-1 {
    width: 200px; height: 200px;
    top: 8%; left: 5%;
    animation: hexBgFloat 20s ease-in-out infinite, hexBgRotate 40s linear infinite;
}
.auth-hex-bg-2 {
    width: 120px; height: 120px;
    bottom: 15%; right: 8%;
    animation: hexBgFloat 16s ease-in-out infinite reverse, hexBgRotate 30s linear infinite reverse;
    stroke: rgba(6, 182, 212, 0.05);
}
.auth-hex-bg-3 {
    width: 80px; height: 80px;
    top: 60%; left: 15%;
    animation: hexBgFloat 14s ease-in-out infinite 2s, hexBgRotate 25s linear infinite;
    stroke: rgba(139, 92, 246, 0.06);
}

@keyframes hexBgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes hexBgRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Gradient line scanning across brand panel */
.auth-scanline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.4), transparent);
    z-index: 1;
    animation: scanDown 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes scanDown {
    0% { top: 0; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Stats card hover glow */
.auth-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.auth-stat { position: relative; overflow: hidden; }
.auth-stat:hover::before { opacity: 1; }

/* Stat counter shimmer on load */
.auth-stat-value {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, rgba(99, 102, 241, 0.5) 50%, #ffffff 60%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: statShimmer 3s ease-in-out 1s 1;
}
@keyframes statShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Brand title typing underline */
.auth-brand h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    margin: 10px auto 0;
    border-radius: 3px;
    animation: titleLineGrow 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
@keyframes titleLineGrow {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}

/* Input focus — neon underline effect */
.auth-input-wrap input:focus {
    border-bottom-color: #6366f1;
}
.auth-input-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 12px; right: 12px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #06b6d4, #6366f1);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}
.auth-input-wrap:focus-within::after {
    transform: scaleX(1);
}

/* Button ripple on click */
.auth-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}
.auth-btn:active::after {
    transform: scale(2.5);
    opacity: 1;
    transition: 0s;
}

/* Form panel — subtle floating particles */
.auth-form-panel::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    bottom: -60px; left: -60px;
    pointer-events: none;
    animation: formOrb 8s ease-in-out infinite;
}
@keyframes formOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.2); }
}

/* Greeting dot — triple ring pulse */
.auth-greeting-dot::before,
.auth-greeting-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid #6366f1;
    animation: greetRing 2s ease-out infinite;
}
.auth-greeting-dot::after {
    animation-delay: 0.5s;
}
.auth-greeting-dot {
    position: relative;
}
@keyframes greetRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

/* Trust badges — subtle fade-in stagger */
.auth-trust-item {
    animation: trustIn 0.5s ease both;
}
.auth-trust-item:nth-child(1) { animation-delay: 1.1s; }
.auth-trust-item:nth-child(2) { animation-delay: 1.25s; }
.auth-trust-item:nth-child(3) { animation-delay: 1.4s; }
@keyframes trustIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card page — ac-card floating shadow animation */
.ac-card {
    animation: acCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1), acCardFloat 6s ease-in-out 1s infinite;
}
@keyframes acCardFloat {
    0%, 100% { transform: translateY(0); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3); }
    50% { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
}

/* ac-icon-wrap — breathing glow */
.ac-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    background: conic-gradient(from 0deg, rgba(99,102,241,0.15), rgba(6,182,212,0.15), rgba(139,92,246,0.15), rgba(99,102,241,0.15));
    filter: blur(10px);
    z-index: -2;
    animation: acIconGlow 3s ease-in-out infinite alternate;
}
@keyframes acIconGlow {
    0% { opacity: 0.3; transform: scale(0.95); }
    100% { opacity: 0.7; transform: scale(1.1); }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .auth-form-panel {
        width: 440px;
        min-width: 440px;
        padding: 40px;
    }

    .auth-brand {
        padding: 40px;
    }
}

@media (max-width: 960px) {
    body {
        flex-direction: column;
        overflow-y: auto;
    }

    .auth-brand {
        padding: 40px 24px 30px;
        min-height: auto;
    }

    .auth-brand h1 {
        font-size: 24px;
    }

    .auth-brand-tagline {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .auth-stats {
        gap: 8px;
    }

    .auth-stat {
        padding: 12px 14px;
        min-width: 90px;
    }

    .auth-form-panel {
        width: 100%;
        min-width: auto;
        padding: 40px 24px;
        flex: 1;
    }

    .auth-orbit {
        display: none;
    }
}

@media (max-width: 600px) {
    .auth-brand {
        display: none;
    }

    .auth-form-panel {
        background: #ffffff;
        justify-content: center;
        padding: 32px 24px;
    }

    .auth-form-wrap {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════
   AUTH CARD LAYOUT (reset, confirm, verify, register)
   ═══════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050816;
    position: relative;
    overflow: hidden;
}

/* Animated blobs */
.ac-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.ac-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -15%;
    right: -10%;
    animation: acBlob1 12s ease-in-out infinite;
}

.ac-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: acBlob2 15s ease-in-out infinite;
}

.ac-blob-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: acBlob3 10s ease-in-out infinite;
}

@keyframes acBlob1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 30px) scale(1.15);
    }

    66% {
        transform: translate(20px, -20px) scale(0.9);
    }
}

@keyframes acBlob2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes acBlob3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.5;
    }
}

/* Grid overlay */
.ac-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Floating dots */
.ac-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ac-dot {
    position: absolute;
    border-radius: 50%;
    animation: acDotFloat linear infinite;
}

.ac-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    filter: blur(6px);
    opacity: 0.4;
}

@keyframes acDotFloat {
    0% {
        transform: translateY(110vh) scale(0);
        opacity: 0;
    }

    5% {
        opacity: 1;
        transform: translateY(105vh) scale(1);
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* Card */
.ac-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    animation: acCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes acCardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icon */
.ac-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
}

.ac-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: conic-gradient(from 0deg, #6366f1, #06b6d4, #8b5cf6, #6366f1);
    z-index: -1;
    opacity: 0.6;
    animation: acIconRing 4s linear infinite;
}

.ac-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

@keyframes acIconRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ac-card h2 {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    animation: acTextIn 0.5s ease 0.15s both;
}

.ac-card .ac-sub {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 28px;
    animation: acTextIn 0.5s ease 0.25s both;
}

@keyframes acTextIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert */
.ac-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: #065f46;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: acTextIn 0.5s ease 0.3s both;
}

.ac-alert-success svg {
    flex-shrink: 0;
    color: #059669;
}

/* Fields */
.ac-field {
    margin-bottom: 20px;
    animation: acTextIn 0.5s ease calc(0.2s + var(--fi, 0) * 0.08s) both;
}

.ac-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374155;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.ac-input-wrap {
    position: relative;
}

.ac-input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.25s ease;
    border-right: 1.5px solid #e2e8f0;
    border-radius: 12px 0 0 12px;
    background: #f1f5f9;
}

.ac-input-wrap input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 14px 0 60px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
}

.ac-input-wrap input::placeholder {
    color: #b0bec5;
    font-weight: 400;
}

.ac-input-wrap input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(99, 102, 241, 0.1);
}

.ac-input-wrap input:focus+.ac-input-icon {
    color: #6366f1;
    background: #eef2ff;
    border-right-color: #c7d2fe;
}

.ac-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    border-radius: 6px;
    transition: all 0.2s;
}

.ac-pw-toggle:hover {
    color: #6366f1;
    background: #eef2ff;
}

.ac-error {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    font-weight: 500;
    animation: acShake 0.4s ease;
}

@keyframes acShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.ac-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4338ca, #6366f1, #818cf8);
    background-size: 200% 200%;
    animation: acBtnGrad 4s ease infinite;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes acBtnGrad {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.ac-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.ac-btn:active {
    transform: translateY(0);
}

.ac-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: acShimmer 3s ease-in-out infinite;
}

@keyframes acShimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

.ac-btn-arrow {
    transition: transform 0.3s ease;
}

.ac-btn:hover .ac-btn-arrow {
    transform: translateX(4px);
}

.ac-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    padding: 6px;
    border-radius: 8px;
}

.ac-back:hover {
    color: #4338ca;
    background: #eef2ff;
}

.ac-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: #b0bec5;
    animation: acTextIn 0.5s ease 0.6s both;
}

.ac-text-body {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 24px;
    animation: acTextIn 0.5s ease 0.3s both;
}

.ac-text-body a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}

.ac-text-body a:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .ac-card {
        margin: 16px;
        padding: 32px 24px;
    }
}