/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --lime:      #c8ff00;
  --lime-dim:  rgba(200,255,0,.10);
  --lime-hov:  #d4ff2a;
  --dark:      #0f0f11;
  --dark-2:    #16161a;
  --dark-3:    #1e1e22;
  --white:     #ffffff;
  --text:      #e8e8ea;
  --muted:     rgba(255,255,255,.42);
  --border:    rgba(255,255,255,.09);
  --danger:    #ff6b6b;
  --r:         8px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { height: 100%; }
body  {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.auth-nav {
  display: flex; align-items: center;
  padding: 0 32px; height: 60px;
  border-bottom: 1px solid var(--border);
}
.auth-nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .9375rem; letter-spacing: -.02em; color: #fff;
}
.auth-nav-logo img { height: 24px; width: auto; }

/* ── Outer wrap ────────────────────────────────────────────────────────────── */
.auth-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.auth-card {
  width: 100%; max-width: 420px;
}
.auth-card-head { margin-bottom: 32px; }
.auth-card-head h1 {
  font-size: 1.75rem; font-weight: 800;
  letter-spacing: -.04em; color: #fff; margin-bottom: 6px;
}
.auth-card-head p { font-size: .9375rem; color: var(--muted); }

/* ── Flash / error ─────────────────────────────────────────────────────────── */
.auth-error {
  background: rgba(255,107,107,.12);
  border: 1px solid rgba(255,107,107,.3);
  color: #ff9999; border-radius: var(--r);
  padding: 12px 16px; font-size: .875rem;
  margin-bottom: 20px;
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .8125rem; font-weight: 600;
  color: rgba(255,255,255,.6); letter-spacing: .01em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  background: var(--dark-3);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  color: #fff;
  font-size: .9375rem;
  font-family: inherit;
  padding: 11px 14px;
  transition: border-color .15s;
  outline: none;
  width: 100%;
}
.form-group input:focus { border-color: rgba(200,255,0,.5); }
.form-group input::placeholder { color: rgba(255,255,255,.2); }

/* ── Checkbox ──────────────────────────────────────────────────────────────── */
.check-group {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 2px 0;
}
.check-group input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--lime); cursor: pointer;
}
.check-group label {
  font-size: .8125rem; color: var(--muted); line-height: 1.5; cursor: pointer;
}
.check-group a { color: rgba(200,255,0,.8); }
.check-group a:hover { color: var(--lime); }

/* ── Divider ───────────────────────────────────────────────────────────────── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: .8125rem; margin: 4px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-auth {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; width: 100%;
  font-size: .9375rem; font-weight: 700; letter-spacing: -.01em;
  border: none; border-radius: var(--r); padding: 13px 20px;
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.btn-lime     { background: var(--lime); color: var(--dark); }
.btn-lime:hover { background: var(--lime-hov); }
.btn-ghost-auth {
  background: transparent; color: rgba(255,255,255,.6);
  border: 1.5px solid var(--border); font-size: .9375rem; font-weight: 600;
  border-radius: var(--r); padding: 12px 20px;
}
.btn-ghost-auth:hover { border-color: rgba(255,255,255,.22); color: #fff; }

/* ── Footer link ───────────────────────────────────────────────────────────── */
.auth-switch {
  text-align: center; font-size: .875rem; color: var(--muted); margin-top: 24px;
}
.auth-switch a { color: var(--lime); font-weight: 600; }
.auth-switch a:hover { color: var(--lime-hov); }

.auth-app-note {
  text-align: center; font-size: .8125rem; color: rgba(255,255,255,.2);
  margin-top: 16px;
}

/* ── Section label (above card) ────────────────────────────────────────────── */
.auth-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 14px;
}
.auth-tag-dot {
  width: 5px; height: 5px; background: var(--lime); border-radius: 50%;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .auth-wrap { padding: 32px 20px; align-items: flex-start; }
}
