/* 
 * auth-premium.css — Shared High-Fidelity Design System
 * Inspired by auth-pages.html — Aurora/Glassmorphism theme
 */

:root {
  --bg: #03030a;
  --bg1: #070710;
  --bg2: #0c0c1e;
  --glass: rgba(255, 255, 255, 0.042);
  --glass-md: rgba(255, 255, 255, 0.065);
  --glass-hi: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.13);
  --text: #eeeeff;
  --text-2: #8888b8;
  --text-3: #3a3a6a;
  --blue: #4f6fff;
  --violet: #9b6dff;
  --cyan: #00d9ff;
  --teal: #00e5c0;
  --glow-blue: rgba(79, 111, 255, 0.4);
  --font-d: 'Plus Jakarta Sans', sans-serif;
  --font-b: 'Plus Jakarta Sans', sans-serif;
  --font-m: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── CURSOR (Synced with index.html) ────────────────── */
#cur { position: fixed; z-index: 9999; pointer-events: none; top: 0; left: 0; will-change: transform; }
#cur-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; position: absolute; transform: translate(-50%, -50%); transition: width .2s, height .2s, opacity .2s; }
#cur-ring { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); position: absolute; transform: translate(-50%, -50%); transition: width .4s var(--ease), height .4s var(--ease), border-color .3s, background .3s; }

body.h-link #cur-dot { opacity: 0; }
body.h-link #cur-ring { width: 52px; height: 52px; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .03); }
body.h-cta #cur-ring { width: 64px; height: 64px; border-color: rgba(79, 111, 255, .7); background: rgba(79, 111, 255, .06); }

/* ─── GRAIN ──────────────────────────────────── */
body::after {
  content: ''; position: fixed; inset: -100px; width: calc(100% + 200px); height: calc(100% + 200px);
  pointer-events: none; z-index: 3000; opacity: .025;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: gr .5s steps(2) infinite;
}
@keyframes gr { 0% { transform: translate(0, 0) } 50% { transform: translate(-2%, 3%) } }

#heroCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100vw; height: 100vh; }

body { background: var(--bg); color: var(--text); font-family: var(--font-b); font-smoothing: antialiased; margin: 0; padding: 0; min-height: 100vh; overflow-x: hidden; cursor: none; }

/* ─── BACKGROUND EFFECTS (Synced with index.html) ────── */
#canvas-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: 
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(3, 3, 10, .95) 0%, transparent 55%),
    radial-gradient(ellipse 30% 100% at 0% 50%, rgba(3, 3, 10, .8) 0%, transparent 50%),
    radial-gradient(ellipse 30% 100% at 100% 50%, rgba(3, 3, 10, .8) 0%, transparent 50%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(3, 3, 10, .9) 0%, transparent 55%);
}

.hero-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 900px 700px at var(--hx, 50%) var(--hy, 45%),
    rgba(79, 111, 255, .08) 0%, rgba(155, 109, 255, .04) 45%, transparent 70%);
}

/* ─── AUTH LAYOUT ────────────────────────────── */
.auth-wrap { position: relative; z-index: 100; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 20px 80px; }
.glass { width: 100%; max-width: 440px; background: var(--bg1); border: 1px solid var(--border); border-radius: 24px; padding: 8px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }
.glass-inner { background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 40px; position: relative; overflow: hidden; }

/* ─── UI REFINEMENTS ─────────────────────────── */
.fgrp { margin-bottom: 20px; position: relative; }
.flbl { font-family: var(--font-m); font-size: 10px; color: var(--text-2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; display: block; opacity: 0.8; }
.finp-wrap { position: relative; display: flex; align-items: center; }
.finp { width: 100%; background: var(--bg1); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-family: var(--font-b); font-size: 14.5px; color: var(--text); outline: none; transition: all .2s; }
.finp:focus { border-color: var(--blue); background: var(--bg2); box-shadow: 0 0 0 4px rgba(79, 111, 255, 0.1); }

.pw-tog { position: absolute; right: 12px; background: none; border: none; color: var(--text-3); cursor: pointer; padding: 8px; display: flex; align-items: center; transition: color .2s; }
.pw-tog:hover { color: var(--blue); }
.pw-tog svg { width: 18px; height: 18px; }

.forgot-link { font-family: var(--font-m); font-size: 10.5px; color: var(--text-2); text-decoration: none; letter-spacing: .04em; transition: color .2s; opacity: 0.9; }
.forgot-link:hover { color: var(--blue); opacity: 1; }

.pg-sub { font-family: var(--font-b); font-size: 15px; color: var(--text-2); line-height: 1.6; margin-bottom: 32px; opacity: 0.9; }

.sbtn { width: 100%; height: 54px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--violet)); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-family: var(--font-b); font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); margin-top: 10px; transition: transform .2s var(--ease), box-shadow .2s; }
.sbtn::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .25), transparent 70%); opacity: 0; transition: opacity .3s; }
.sbtn:hover { transform: translateY(-2px); box-shadow: 0 12px 48px rgba(79, 111, 255, 0.4); }
.sbtn:hover::before { opacity: 1; }

.alert { border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.5; display: none; align-items: center; gap: 12px; margin-bottom: 20px; border: 1px solid transparent; }
.alert.show { display: flex; }
.alert.error { background: rgba(248, 113, 113, 0.05); border-color: rgba(248, 113, 113, 0.2); color: #fca5a5; }
.alert.success { background: rgba(45, 212, 191, 0.05); border-color: rgba(45, 212, 191, 0.2); color: #5eead4; }
.alert.info { background: rgba(79, 111, 255, 0.05); border-color: rgba(79, 111, 255, 0.2); color: #a5b4fc; }

@media (max-width: 480px) {
  .glass-inner { padding: 32px 24px; }
  .pg-title { font-size: 32px; }
}
