/* ─── Auth Pages — Matching app/landing CSS style ─────────────────────────────────────
 * Dark theme, neon-green accent, clean geometric
 * ──────────────────────────────────────────────────────────────────────────── */

@import 'variables.css';

:focus-visible {
  outline: 2px solid var(--accent, #00ff88);
  outline-offset: 2px;
}

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

/* ─── Page wrapper ──────────────────────────────────────────────────────────── */
.auth-wrap {
  width: 100%; max-width: 400px;
  padding: 20px;
}

/* ─── Card ────────────────────────────────────────────────────────────────── */
.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.auth-header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border-color);
}
.auth-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 20px;
}
.auth-logo-icon {
  width: 28px; height: 28px;
  background-image: url('/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.auth-header h1 {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px; letter-spacing: -0.2px;
}
.auth-header p { font-size: 14px; color: var(--text-secondary); }

/* ─── Form body ──────────────────────────────────────────────────────────── */
.auth-body { padding: 28px 32px; }

/* ─── Field ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 6px;
}
.field label .opt { font-weight: 400; color: var(--text-secondary); }

.field input {
  width: 100%; padding: 11px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 15px; font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--text-secondary); }
.field input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.12);
}

.field-error {
  font-size: 12px; color: var(--error-red); min-height: 16px;
  margin-top: 4px; display: none;
}

/* ─── Global error ───────────────────────────────────────────────────────── */
.auth-error {
  background: rgba(255,68,102,0.08);
  border: 1px solid rgba(255,68,102,0.25);
  border-radius: var(--radius);
  padding: 12px 14px; font-size: 14px; color: var(--error-red);
  margin-bottom: 18px; display: none;
}

/* ─── Success banner ────────────────────────────────────────────────────── */
.auth-success {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: var(--radius);
  padding: 14px 16px; font-size: 14px; color: var(--accent-green);
  margin-bottom: 20px; line-height: 1.5;
}

/* ─── Submit button ──────────────────────────────────────────────────────── */
.btn-submit {
  width: 100%; padding: 13px;
  background: var(--accent-green); color: var(--bg-primary);
  border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  margin-top: 20px;
}
.btn-submit:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* ─── Footer links ───────────────────────────────────────────────────────── */
.auth-alt {
  text-align: center; font-size: 14px; color: var(--text-secondary);
  margin-top: 18px;
}
.auth-alt a { color: var(--accent-green); }
.auth-back {
  text-align: center; font-size: 13px; color: var(--text-secondary);
  margin-top: 10px;
}
.auth-back a { color: var(--text-secondary); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-header, .auth-body { padding: 24px 20px; }
}
