/* ============================================================
   CLEOM — Auth (login / signup) · split-screen wow edition
   Left: living neon panel. Right: clean form.
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-0: #F4F5F0; --bg-1: #FFFFFF; --bg-2: #EAEBE4;
    --ink-0: #0C0D0A; --ink-1: #5C5E55; --ink-2: #8A8C82; --line: #E2E3DB;
    --accent: #9EFF00; --accent-deep: #3E7A00; --accent-ink: #0A0A0A;
    --dark: #0C0D0A; --dark-1: #14160F; --on-dark-0: #F4F5EE; --on-dark-1: #A6A89B; --line-dark: #262922;
    --font-display: 'Inter Tight', sans-serif; --font-body: 'Inter', sans-serif; --font-mono: 'JetBrains Mono', monospace;
    --r-md: 14px; --r-lg: 24px; --r-full: 999px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --glow: 0 10px 34px rgba(158,255,0,0.40);
}
html, body { height: 100%; }
body { background: var(--bg-0); color: var(--ink-0); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #0A0A0A; }

.auth-split { display: grid; grid-template-columns: minmax(420px, 44%) 1fr; min-height: 100vh; }

/* ============ LEFT — living panel ============ */
.auth-visual { position: relative; background: var(--dark); color: var(--on-dark-0); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem 3rem; }
.auth-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(12,13,10,0.55)); pointer-events: none; }
.av-blob { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; }
.av-blob.b1 { width: 540px; height: 540px; left: -160px; top: -140px; background: radial-gradient(circle, rgba(158,255,0,0.34), transparent 65%); animation: avFloat1 14s ease-in-out infinite alternate; }
.av-blob.b2 { width: 460px; height: 460px; right: -180px; bottom: -120px; background: radial-gradient(circle, rgba(62,122,0,0.4), transparent 65%); animation: avFloat2 18s ease-in-out infinite alternate; }
.av-blob.b3 { width: 280px; height: 280px; left: 36%; top: 42%; background: radial-gradient(circle, rgba(158,255,0,0.16), transparent 65%); animation: avFloat3 11s ease-in-out infinite alternate; }
@keyframes avFloat1 { to { transform: translate(70px, 50px) scale(1.15); } }
@keyframes avFloat2 { to { transform: translate(-60px, -60px) scale(1.1); } }
@keyframes avFloat3 { to { transform: translate(-50px, 60px) scale(1.25); } }
.av-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(244,245,238,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(244,245,238,0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(80% 70% at 40% 35%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(80% 70% at 40% 35%, #000 30%, transparent 75%); }

.av-top { position: relative; z-index: 2; }
.av-logo { height: 34px; width: auto; }
.av-mid { position: relative; z-index: 2; max-width: 420px; }
.av-mid h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 2.6vw, 2.7rem); line-height: 1.06; letter-spacing: -0.03em; color: var(--on-dark-0); margin-bottom: 1.1rem; }
.av-mid h2 .neon { color: var(--accent); }
.av-mid p { color: var(--on-dark-1); font-size: 1.02rem; }

/* floating surface chips */
.av-chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.av-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border-radius: var(--r-full); background: rgba(244,245,238,0.06); border: 1px solid rgba(244,245,238,0.14); backdrop-filter: blur(8px); font-size: 0.82rem; font-weight: 500; color: var(--on-dark-0); animation: chipBob 5s ease-in-out infinite alternate; }
.av-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(158,255,0,0.8); }
.av-chip:nth-child(2) { animation-delay: 0.7s; }
.av-chip:nth-child(3) { animation-delay: 1.4s; }
.av-chip:nth-child(4) { animation-delay: 2.1s; }
.av-chip:nth-child(5) { animation-delay: 2.8s; }
@keyframes chipBob { from { transform: translateY(0); } to { transform: translateY(-7px); } }

.av-bottom { position: relative; z-index: 2; display: flex; align-items: center; gap: 1.1rem; }
.av-stat { padding-right: 1.1rem; border-right: 1px solid rgba(244,245,238,0.14); }
.av-stat:last-child { border-right: none; }
.av-stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--accent); letter-spacing: -0.02em; }
.av-stat .l { font-size: 0.72rem; color: var(--on-dark-1); }

/* ============ RIGHT — form ============ */
.auth-pane { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem var(--px, 2rem); position: relative; }
.auth-back { position: absolute; top: 1.75rem; right: 2.25rem; font-size: 0.9rem; color: var(--ink-1); display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.2s; }
.auth-back:hover { color: var(--ink-0); }
.auth-back svg { width: 15px; height: 15px; }

.auth-card { width: 100%; max-width: 460px; animation: cardIn 0.7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.auth-head { margin-bottom: 2rem; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); margin-bottom: 0.9rem; }
.auth-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(158,255,0,0.7); }
.auth-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 0.6rem; }
.auth-head p { color: var(--ink-1); font-size: 1rem; }
.auth-head p a { color: var(--accent-deep); font-weight: 600; }
.auth-head p a:hover { text-decoration: underline; }

.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-0); margin-bottom: 0.4rem; }
.field label .opt { color: var(--ink-2); font-weight: 400; font-size: 0.76rem; }
.input, .select { width: 100%; padding: 0.92rem 1.05rem; background: var(--bg-1); border: 1.5px solid var(--line); border-radius: var(--r-md); color: var(--ink-0); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.2s var(--ease); }
.input::placeholder { color: var(--ink-2); }
.input:hover, .select:hover { border-color: #CDCFC2; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(158,255,0,0.18); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%238A8C82' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field-err { display: none; font-size: 0.78rem; color: #C2410C; margin-top: 0.35rem; }
.field-err.show { display: block; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); display: flex; }
.pw-toggle:hover { color: var(--ink-0); }
.pw-toggle svg { width: 18px; height: 18px; }

.btn-auth { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 1.02rem 1.5rem; border-radius: var(--r-full); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease); margin-top: 0.4rem; }
.btn-auth:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-auth:disabled { opacity: 0.6; transform: none; box-shadow: none; cursor: not-allowed; }
.btn-auth svg { width: 17px; height: 17px; }

.auth-or { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; color: var(--ink-2); font-size: 0.8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; padding: 0.95rem 1.5rem; border-radius: var(--r-full); background: var(--bg-1); border: 1.5px solid var(--line); font-weight: 600; font-size: 0.98rem; color: var(--ink-0); transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; }
.btn-google:hover { border-color: var(--ink-0); transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(12,13,10,0.2); }
.btn-google svg { width: 19px; height: 19px; }

.auth-foot { margin-top: 1.6rem; font-size: 0.8rem; color: var(--ink-2); line-height: 1.55; }
.auth-foot a { color: var(--accent-deep); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin: -0.3rem 0 1rem; }
.auth-links a { font-size: 0.84rem; color: var(--ink-1); }
.auth-links a:hover { color: var(--accent-deep); }

/* steps hint on signup */
.auth-perks { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.6rem; }
.auth-perk { display: flex; align-items: center; gap: 0.55rem; font-size: 0.86rem; color: var(--ink-1); }
.auth-perk svg { width: 15px; height: 15px; color: var(--accent-deep); flex-shrink: 0; }

@media (max-width: 980px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-visual { min-height: 270px; padding: 1.75rem; }
    .av-mid h2 { font-size: 1.6rem; }
    .av-bottom, .av-chips { display: none; }
    .auth-pane { padding: 2.25rem 1.4rem 3rem; }
    .auth-back { top: 1.25rem; right: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- lime star-spark cursor trail (same as the homepage) ---- */
.spark-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.spark { position: absolute; width: 10px; height: 10px; background: #9EFF00; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transform: translate(-50%, -50%) scale(var(--sc, 1)); filter: drop-shadow(0 0 5px rgba(158,255,0,0.75)); animation: sparkFly 0.7s cubic-bezier(0.2, 0.6, 0.35, 1) forwards; }
.spark.alt { background: #84DB00; width: 8px; height: 8px; filter: drop-shadow(0 0 4px rgba(62,122,0,0.6)); }
@keyframes sparkFly {
    0% { opacity: 0.95; transform: translate(-50%, -50%) scale(var(--sc, 1)) rotate(0deg); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.05) rotate(var(--rot, 90deg)); }
}
