/* ============================================================
   NEXAVAULT — AUTH PAGES CSS
   ============================================================ */

:root {
  --color-bg:         #080C18;
  --color-surface:    #0D1426;
  --color-card:       rgba(13,20,38,0.92);
  --color-border:     rgba(255,255,255,0.07);
  --color-border-acc: rgba(0,212,255,0.18);
  --color-cyan:       #00D4FF;
  --color-violet:     #7B61FF;
  --color-mint:       #00FF94;
  --color-red:        #FF4560;
  --color-gold:       #FFB800;
  --color-text-1:     #FFFFFF;
  --color-text-2:     #94A3B8;
  --color-text-3:     #4A5568;
  --grad-primary:     linear-gradient(135deg,#00D4FF,#7B61FF);
  --font-display:     'Space Grotesk',system-ui,sans-serif;
  --font-body:        'Inter',system-ui,sans-serif;
  --font-mono:        'JetBrains Mono','Courier New',monospace;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-full:      9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-1);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Background */
.auth-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle,rgba(0,212,255,0.07),transparent 70%);
  top: -80px; left: -80px;
  animation: od1 16s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle,rgba(123,97,255,0.07),transparent 70%);
  bottom: -80px; right: -80px;
  animation: od2 12s ease-in-out infinite alternate;
}
@keyframes od1 { to { transform: translate(60px,40px); } }
@keyframes od2 { to { transform: translate(-60px,-40px); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,212,255,0.025) 1px,transparent 1px);
  background-size: 60px 60px;
}

/* Wrapper */
.auth-wrapper {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

/* Logo */
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--color-text-1);
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
}

/* Card */
.auth-card {
  width: 100%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.04);
}

/* Header */
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 6px;
}
.auth-header p { color: var(--color-text-2); font-size: 0.9375rem; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--color-text-2);
  display: flex; justify-content: space-between;
}
.form-label-link { color: var(--color-cyan); font-weight: 400; }
.form-label-link:hover { text-decoration: underline; }
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--color-text-1);
  font-size: 0.9375rem; font-family: var(--font-body);
  outline: none; width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus {
  border-color: var(--color-cyan);
  background: rgba(0,212,255,0.04);
}
.form-input::placeholder { color: var(--color-text-3); }
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 46px; }
.toggle-pw {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 1rem; opacity: 0.5;
  transition: opacity 0.2s;
  padding: 4px;
}
.toggle-pw:hover { opacity: 1; }

.optional { color: var(--color-text-3); font-weight: 400; }

/* Checkbox */
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--color-text-2);
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px;
  accent-color: var(--color-cyan); flex-shrink: 0;
}

/* Submit Button */
.btn-auth {
  background: var(--grad-primary);
  color: #fff; border: none; border-radius: var(--radius-full);
  padding: 14px 28px; font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
  width: 100%; text-align: center; display: block;
  text-decoration: none;
}
.btn-auth:hover {
  opacity: 0.92; transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(0,212,255,0.4);
  text-decoration: none;
}
.btn-auth:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--color-border-acc);
  color: var(--color-cyan);
  box-shadow: none;
}
.btn-secondary:hover { background: rgba(0,212,255,0.06); box-shadow: none; }

/* Alerts */
.alert {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border-radius: var(--radius-md);
  font-size: 0.875rem; line-height: 1.5;
  margin-bottom: 4px;
}
.alert-icon { margin-right: 6px; }
.alert-success { background: rgba(0,255,148,0.08); border: 1px solid rgba(0,255,148,0.2); color: var(--color-mint); }
.alert-error   { background: rgba(255,69,96,0.08);  border: 1px solid rgba(255,69,96,0.2);  color: #ff7a92; }
.alert-warning { background: rgba(255,184,0,0.08);  border: 1px solid rgba(255,184,0,0.2);  color: var(--color-gold); }
.alert-info    { background: rgba(0,212,255,0.08);  border: 1px solid rgba(0,212,255,0.2);  color: var(--color-cyan); }
.alert a { color: inherit; text-decoration: underline; }

/* Auth Switch */
.auth-switch {
  font-size: 0.875rem; color: var(--color-text-2);
  text-align: center; margin-top: 4px;
}
.auth-switch a { color: var(--color-cyan); }

/* Verify Result */
.verify-result {
  text-align: center; padding: 12px 0;
}
.verify-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,255,148,0.12);
  border: 1px solid rgba(0,255,148,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin: 0 auto 20px;
  color: var(--color-mint);
}
.verify-icon-error { background: rgba(255,69,96,0.1); border-color: rgba(255,69,96,0.3); color: var(--color-red); }
.verify-icon-info  { background: rgba(0,212,255,0.1);  border-color: rgba(0,212,255,0.3);  color: var(--color-cyan); }
.verify-result h2  { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 10px; }
.verify-result p   { color: var(--color-text-2); font-size: 0.9375rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 520px) {
  .auth-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-wrapper { padding: 16px 12px; }
}

