/* public/auth.css — styles shared by /login, /forgot-password, /reset-password.
 *
 * Pulls the same design tokens as the landing page so the auth pages
 * feel like the same product (gradient brand wordmark, purple→blue→gold,
 * navy bg, Fredoka). Self-contained — does not depend on landing.css.
 */
:root {
  --bg: #0d1117;
  --card: #161b22;
  --card-2: #1c222b;
  --border: #21262d;
  --text: #e6edf3;
  --dim: #8b949e;
  --bright: #ffffff;
  --green: #3fb950;
  --red: #f85149;
  --blue: #58a6ff;
  --purple: #bc8cff;
  --yellow: #f0c040;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Fredoka', sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}

.auth-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700;
}
.auth-logo .grad {
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--yellow));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.4px;
}
.auth-logo em { font-style: normal; color: var(--yellow); -webkit-text-fill-color: var(--yellow); }

.auth-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
}
.auth-card h1 {
  margin: 0 0 6px 0;
  font-size: 24px;
  color: var(--bright);
  letter-spacing: -0.3px;
}
.auth-card .sub {
  margin: 0 0 22px 0;
  font-size: 14px;
  color: var(--dim);
}

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bright);
}
.form-row input {
  width: 100%;
  padding: 11px 13px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.form-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88,166,255,0.15);
}
.form-row small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--dim);
}

.btn {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(188,140,255,0.35);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-block { width: 100%; }

.alert {
  margin: 0 0 14px 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.alert-error {
  background: rgba(248,81,73,0.10);
  border: 1px solid rgba(248,81,73,0.35);
  color: #ffb3ae;
}
.alert-success {
  background: rgba(63,185,80,0.10);
  border: 1px solid rgba(63,185,80,0.35);
  color: #a8e2b1;
}

.foot-link {
  font-size: 14px;
  color: var(--dim);
  text-align: center;
  margin-top: 14px;
}
.foot-link a { color: var(--blue); text-decoration: none; }
.foot-link a:hover { text-decoration: underline; }

.inline-link {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  text-align: right;
}
.inline-link:hover { text-decoration: underline; }
