/* ── Auth pages ─────────────────────────────────────────────────
   Reuses CSS variables from style.css (loaded first).
   Designed to match the main app's warm dark scholar aesthetic.
────────────────────────────────────────────────────────────────── */

.auth-body {
  min-height: 100vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--sidebar-bg);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 40px 36px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-logo {
  font-family: var(--font-card);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.auth-title {
  font-family: var(--font-card);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-error {
  background: rgba(196, 90, 64, 0.12);
  border: 1px solid var(--danger);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.72rem;
  color: var(--danger);
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.auth-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.auth-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}
.auth-input::placeholder { color: var(--text-dim); }
.auth-input:focus { border-color: var(--accent); background: var(--surface-2); }

.auth-hint {
  font-size: 0.62rem;
  color: var(--text-dim);
}

.auth-btn {
  margin-top: 6px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: #12100d;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease;
  letter-spacing: 0.03em;
}
.auth-btn:hover { background: var(--accent-hover); }
.auth-btn:active { transform: scale(0.99); }

.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
.auth-switch a:hover { color: var(--accent-hover); text-decoration: underline; }
