/* =====================================================
   auth.css — Login & Register page styles
   Depends on: main.css (loaded first)
   ===================================================== */

/* ── Page layout ───────────────────────────────────── */
.auth-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,232,122,0.08), transparent),
    var(--bg);
}

.auth-page {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ── Logo ───────────────────────────────────────────── */
.auth-logo {
  font-size: 1.5rem;
}

/* ── Card ───────────────────────────────────────────── */
.auth-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Card header ────────────────────────────────────── */
.auth-card-header {
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.auth-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* Password row with forgot link */
.auth-pw-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.auth-forgot {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.15s;
}
.auth-forgot:hover { color: var(--accent-light); }

/* ── Switch row ─────────────────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-dim);
  padding-top: 0.25rem;
}

.auth-switch a {
  color: var(--accent-light);
  font-weight: 500;
  margin-left: 0.25em;
}
.auth-switch a:hover { color: var(--text); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }
}
