/* EverKin Auth Pages — matches heritage aesthetic of landing.css */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

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

:root {
  --warm-cream: #FDF6EC;
  --deep-walnut: #3D2B1F;
  --soft-amber: #C8956C;
  --muted-sage: #8B9E82;
  --aged-paper: #F5EBD8;
  --ink: #2A1F14;
  --faded-rose: #C4918A;
  --light-linen: #FAF3E8;
  --error-red: #C0392B;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(212, 184, 150, 0.3);
  background: rgba(253, 246, 236, 0.95);
}
.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: var(--deep-walnut);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-spacer { flex: 1; }
.nav-link {
  font-size: 14px;
  color: var(--soft-amber);
  text-decoration: none;
  font-weight: 500;
}
.nav-link:hover { color: var(--deep-walnut); }

/* ── Auth card ───────────────────────────────────────────────────── */
.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  background: white;
  border: 1px solid rgba(212, 184, 150, 0.35);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(61, 43, 31, 0.06);
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}
.auth-brand-logo {
  font-size: 28px;
  margin-bottom: 4px;
}
.auth-title {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  color: var(--deep-walnut);
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 14px;
  color: #7A6652;
}

/* ── Form ────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(212, 184, 150, 0.5);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-cream);
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}
.form-input:focus {
  border-color: var(--soft-amber);
  background: white;
}
.form-input::placeholder { color: #B0A090; }

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--deep-walnut);
  color: var(--warm-cream);
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  margin-top: 8px;
}
.btn-submit:hover { background: #2A1F14; }
.btn-submit:active { transform: scale(0.99); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Error / success banners ─────────────────────────────────────── */
.alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: #FEF2F2; color: var(--error-red); border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }

/* ── Divider / switch link ───────────────────────────────────────── */
.auth-divider {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: #7A6652;
}
.auth-divider a { color: var(--soft-amber); text-decoration: none; font-weight: 500; }
.auth-divider a:hover { color: var(--deep-walnut); }

/* ── Footer ─────────────────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: #7A6652;
}

@media (max-width: 480px) {
  .auth-card { padding: 36px 24px; }
}
