/* auth.css — Shared auth styles (login / register / forgot / reset) */

:root {
  --bg: #fbfbfa;
  --card: #fff;
  --text: #37352f;
  --muted: #6b6966;
  --border: #e9e9e7;
  --accent: #2f80ed;
  --accent-rgb: 47, 128, 237;
  --danger: #eb5757;
  --shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.dark {
  --bg: #191919;
  --card: #252525;
  --text: #e8e8e5;
  --muted: #a1a09a;
  --border: #353535;
  --shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
}

.card h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}

.card .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.fg {
  margin-bottom: 16px;
}

.fg label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 5px;
}

.fg input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border .15s;
  -webkit-appearance: none;
}

.fg input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-p {
  background: var(--accent);
  color: #fff;
}

.btn-p:hover {
  opacity: .9;
}

.btn-p:active {
  transform: scale(.98);
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.link:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.alert-error {
  background: #fdf2f2;
  color: #ec5f5f;
  border: 1px solid #fde2e2;
}

.dark .alert-error {
  background: #2b1515;
  color: #f87171;
  border-color: #4b1a1a;
}

.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
    border-radius: 12px;
  }
}
