/* Reuses the CSS custom properties already defined in ../css/style.css
   (--card, --line, --paper, --ink, --green, --orange, --font-display, etc).
   If that stylesheet isn't linked for some reason, sensible fallbacks below
   keep this page from looking broken. */

:root {
  --card: #ffffff;
  --paper: #faf8f5;
  --paper-alt: #f2efe9;
  --line: #e6e1d8;
  --ink: #2a2a28;
  --ink-soft: #6b675f;
  --green: #0e9249;
  --green-ink: #0b6b37;
  --orange: #e8873c;
  --orange-dark: #c96b26;
  --radius-l: 18px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --font-display: 'Fraunces', serif;
  --font-mono: 'Space Mono', monospace;
}

body { background: var(--paper); }

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: 34px 30px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-decoration: none;
}
.auth-brand img { width: 30px; height: 30px; border-radius: 8px; }
.auth-brand .brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-ink);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.auth-card .auth-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--green-ink);
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: inherit;
  font-size: 0.94rem;
  box-sizing: border-box;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(14,146,73,0.14);
}

.auth-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 100px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  margin-top: 6px;
}
.auth-submit:hover { background: var(--green-ink); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-google {
  width: 100%;
  padding: 12px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-google:hover { border-color: var(--green); }

.auth-footer {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}
.auth-footer a { color: var(--orange-dark); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-error {
  background: #fdecea;
  border: 1px solid #f3b6b0;
  color: #8a2e24;
  border-radius: var(--radius-s);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}
.auth-error.active { display: block; }

.auth-forgot {
  text-align: right;
  margin: -8px 0 16px;
}
.auth-forgot a { font-size: 0.82rem; color: var(--ink-soft); text-decoration: none; }
.auth-forgot a:hover { color: var(--orange-dark); }
