/* bete auth pages — login, register, dashboard */
:root {
  --bg: #f7f5f0;
  --fg: #1a1a1a;
  --green: #1e5c38;
  --green-mid: #2a7a4a;
  --green-light: #e8f5e9;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --surface: #ffffff;
  --muted: #6b6b6b;
  --border: #e0dcd4;
  --red: #c0392b;
  --red-light: #fdecea;
  --text-secondary: #5a5a5a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  padding: 20px;
}

/* ─── AUTH CONTAINER ─── */
.auth-container {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.auth-brand {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
  margin-bottom: 28px;
  letter-spacing: -1px;
}

.auth-title {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}

.auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ─── FORM ─── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.auth-form-inline {
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
}
.auth-form-inline .auth-field { flex: 1; margin-bottom: 0; }

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

.auth-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.auth-field input {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  background: var(--surface);
  color: var(--fg);
  transition: border-color 0.15s;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--green);
}

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

/* ─── BUTTONS ─── */
.auth-btn {
  padding: 14px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  width: 100%;
}
.auth-btn:hover:not(:disabled) { background: var(--green-mid); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-btn-secondary {
  background: var(--surface);
  color: var(--green);
  border: 1.5px solid var(--green);
  white-space: nowrap;
  width: auto;
  padding: 12px 16px;
  font-size: 14px;
}
.auth-btn-secondary:hover:not(:disabled) { background: var(--green-light); }

/* ─── DIVIDER ─── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── ERROR / SUCCESS ─── */
.auth-error {
  background: var(--red-light);
  color: var(--red);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.auth-success {
  background: var(--green-light);
  color: var(--green);
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
}

/* ─── SWITCH LINK ─── */
.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.auth-switch a { color: var(--green); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ─── TERMS ─── */
.auth-terms {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.5;
}
.auth-terms a { color: var(--green); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }