/* Auth pages — built on top of index.css tokens (--bg, --bg-elev, --border,
   --text, --text-dim, --accent, --accent-hover, --radius). */

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

.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.auth-card .logo {
  justify-content: center;
  margin-bottom: 2rem;
}

.auth-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-head h1 {
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.auth-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.form-field-head label { margin-bottom: 0; }

.form-field input[type="email"],
.form-field input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.form-field input::placeholder { color: var(--text-dim); }
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #f87171;
}
.form-error.show { display: block; }

.auth-alert {
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
  display: none;
}
.auth-alert.show { display: block; }
.auth-alert-error { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.auth-alert-success { background: rgba(34, 197, 94, 0.12); color: #4ade80; }

.auth-link-sm {
  font-size: 0.8rem;
  color: var(--accent);
}
.auth-link-sm:hover { color: var(--accent-hover); }

.auth-submit { width: 100%; }
.auth-submit[disabled] { opacity: 0.65; cursor: default; }
.auth-submit[disabled]:active { transform: none; }

.auth-foot {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.auth-foot a { color: var(--accent); font-weight: 600; }
.auth-foot a:hover { color: var(--accent-hover); }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
}
.auth-back:hover { color: var(--text); }

.auth-status {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .auth-card { padding: 2rem 1.5rem; }
}
