/* ===== Tokens (mismos que el resto del sitio) ===== */
:root {
  --ink: #1F2430;
  --ink-soft: #2A3040;
  --gold: #C8B392;
  --gold-light: #E4D9C4;
  --cream: #F4F1EC;
  --off-white: #FAF8F5;
  --white: #FFFFFF;
  --line: #E7E1D4;
  --text-muted: #6B7280;
  --error: #B3413F;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;

  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
}

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

.auth__card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: 0 30px 60px -30px rgba(35, 43, 57, 0.25);
}

.auth__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth__logo {
  height: 56px;
  width: auto;
}

.auth__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
}

.auth__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  text-align: center;
  color: var(--ink);
}

.auth__sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1.75rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.field__input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--off-white);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field__input::placeholder {
  color: var(--text-muted);
}

.field__input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.field__input.is-invalid {
  border-color: var(--error);
}

.auth__error {
  display: none;
  font-size: 0.85rem;
  color: var(--error);
  background: rgba(179, 65, 63, 0.08);
  border: 1px solid rgba(179, 65, 63, 0.25);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}

.auth__error.is-visible {
  display: block;
}

.btn {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn--solid {
  background: var(--ink);
  color: var(--white);
  width: 100%;
  padding: 0.85rem 1.3rem;
}

.btn--solid:hover:not(:disabled) {
  background: var(--gold);
  color: var(--ink);
}

.btn--solid:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth__footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth__footer a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.auth__footer a:hover {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .auth__card {
    padding: 1.75rem 1.4rem;
  }
}
