/* ═══════════════════════════════════════
   AUTH PAGES — CSS
   ═══════════════════════════════════════ */

body {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  display: flex;
}

.auth-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.auth-box {
  width: min(100%, 420px);
  background: #0a0a0a;
  border: 1px solid var(--green-dim);
  border-radius: 6px;
  box-shadow: var(--glow-strong);
  overflow: hidden;
}

.auth-header {
  background: #0d0d0d;
  border-bottom: 1px solid var(--green-dark);
  padding: 16px 24px 14px;
}

.auth-logo {
  display: block;
  font-size: 0.72rem;
  color: var(--green-dim);
  text-shadow: 0 0 6px var(--green-dim);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.auth-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--green);
  text-shadow: var(--glow);
  margin: 0;
}

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

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

.auth-field label {
  font-size: 0.75rem;
  color: var(--green-dim);
  letter-spacing: 0.05em;
}

.auth-field input {
  background: #050505;
  border: 1px solid var(--green-dark);
  border-radius: 3px;
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.88rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  border-color: var(--green-dim);
  box-shadow: 0 0 8px rgba(0,255,65,0.25);
}

.auth-field input::placeholder {
  color: #1a3b20;
}

/* ── Buttons ── */
.auth-btn {
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 3px;
  color: var(--green);
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.88rem;
  padding: 10px 18px;
  text-shadow: var(--glow);
  transition: background 0.15s, box-shadow 0.15s;
  letter-spacing: 0.04em;
}

.auth-btn:hover {
  background: rgba(0,255,65,0.08);
  box-shadow: var(--glow);
}

.auth-btn--full { width: 100%; }

/* ── OAuth buttons ── */
.oauth-row {
  display: flex;
  gap: 10px;
}

.oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  border: 1px solid;
  letter-spacing: 0.03em;
}

.oauth-btn--google {
  border-color: #4285f4;
  color: #4285f4;
  text-shadow: 0 0 6px #4285f480;
}
.oauth-btn--google:hover {
  background: rgba(66,133,244,0.1);
  box-shadow: 0 0 10px #4285f440;
}

.oauth-btn--github {
  border-color: #aaa;
  color: #aaa;
  text-shadow: 0 0 6px #aaa4;
}
.oauth-btn--github:hover {
  background: rgba(170,170,170,0.1);
  box-shadow: 0 0 10px #aaa3;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-size: 0.72rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--green-dark);
}

/* ── Footer links ── */
.auth-footer {
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.auth-footer a,
.auth-link {
  color: var(--green-dim);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.15s, text-shadow 0.15s;
}

.auth-footer a:hover,
.auth-link:hover {
  color: var(--green);
  text-shadow: var(--glow);
}

/* ── Messages ── */
.auth-msg {
  margin: 0 24px;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 0.82rem;
  margin-top: 12px;
}

.auth-msg--error {
  border: 1px solid var(--red);
  color: var(--red);
  text-shadow: 0 0 6px var(--red);
}

.auth-msg--success {
  border: 1px solid var(--green);
  color: var(--green);
  text-shadow: var(--glow);
}

/* ── Password strength ── */
.pw-strength {
  height: 3px;
  border-radius: 2px;
  background: #111;
  margin-top: 4px;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s, background 0.3s;
}
