/* ── Login page — pixel/arcade theme ── */

.auth-main {
  max-width: 460px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.auth-card {
  background: var(--panel);
  border: 2px solid var(--violet-bright);
  box-shadow: var(--px-shadow-bright);
  padding: 40px 36px;
  text-align: center;
}

/* Hat icon */
.auth-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.auth-icon svg {
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.5));
}

/* Heading */
.auth-card h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--violet-glow);
  text-shadow: 0 0 16px var(--violet-mid);
  margin-bottom: 10px;
  line-height: 1.4;
}

#auth-subhead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  gap: 0;
}

.auth-tab {
  flex: 1;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 12px 8px;
  background: var(--bg);
  color: var(--muted);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab + .auth-tab { border-left: none; }

.auth-tab.active {
  background: var(--violet-mid);
  color: var(--white);
  border-color: var(--violet-glow);
}

.auth-tab:hover:not(.active) {
  color: var(--violet-glow);
  border-color: var(--border-bright);
}

/* ── Google button ── */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--bg);
  color: var(--white);
  border: 2px solid var(--border-bright);
  box-shadow: var(--px-shadow-sm);
  padding: 12px 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.15s;
}

.google-btn:hover {
  border-color: var(--violet-glow);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #4A1A8A;
}

.google-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #4A1A8A;
}

.google-btn svg { flex-shrink: 0; }

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 0;
  border-top: 2px dashed var(--border);
}

.auth-divider span {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Email form ── */
#email-form { text-align: left; }
#email-form .form-group { margin-bottom: 16px; }

.pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pass-wrap input { padding-right: 60px; }

.show-pass-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.12s;
}
.show-pass-btn:hover { color: var(--violet-glow); }

.pass-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.auth-submit {
  margin-top: 8px;
}

/* ── Resend wrap ── */
#resend-wrap {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--violet-glow);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--neon); }

.auth-note {
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

/* ── Banners ── */
.error-banner,
.success-banner {
  border: 2px solid;
  padding: 12px 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: var(--px-shadow-sm);
}

.error-banner {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.5);
  box-shadow: 3px 3px 0 rgba(239,68,68,0.3);
  color: #FCA5A5;
}

.success-banner {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.4);
  box-shadow: 3px 3px 0 rgba(34,197,94,0.2);
  color: #86EFAC;
}

/* ── Check-email state ── */
.check-email-icon  { font-size: 2.5rem; margin-bottom: 12px; }

.check-email-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--violet-glow);
  margin-bottom: 14px;
  line-height: 1.6;
}

.check-email-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.check-email-body strong { color: var(--white); }

.check-email-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
