/* ═══════════════════════════════════════════════
   NERDY SECURITY — LOGIN / REGISTER PAGE CSS
═══════════════════════════════════════════════ */

body.auth-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Ambient blobs */
body.auth-page::before,
body.auth-page::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
}
body.auth-page::before {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: -100px;
}
body.auth-page::after {
  width: 400px; height: 400px;
  background: var(--purple);
  bottom: -100px; right: -80px;
}

/* ─── AUTH CARD ─────────────────────────────── */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border-lit);
  border-radius: 18px;
  padding: 44px 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: cardIn 0.5s ease both;
}

@keyframes cardIn {
  from { opacity:0; transform:translateY(20px) scale(0.98); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* Top brand mark */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.auth-brand-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* Title */
.auth-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-subtitle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

/* ─── FORM ───────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-lit);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}

/* Password toggle */
.pass-wrap {
  position: relative;
}

.pass-wrap input {
  padding-right: 48px;
}

.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.pass-toggle:hover { color: var(--accent); }

/* Submit button */
.auth-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.auth-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.45s;
}
.auth-submit:hover::after { transform: translateX(100%); }
.auth-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0,212,255,0.35);
}

/* Error message */
.auth-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Back link */
.auth-back {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.auth-back:hover { color: var(--accent); }

/* Divider */
.auth-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
}