/* =========================================================================
   Koyne — auth.css
   The four /auth/* surfaces: signup, thanks, login, set_password.
   Centred-card layout, max 480-720px wide.
   ========================================================================= */

.k-auth {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px;
  background: var(--bg);
}
.k-auth__brand { margin-bottom: 36px; }
.k-auth__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-md);
}
.k-auth__card--wide { max-width: 720px; }
[data-theme="dark"] .k-auth__card { box-shadow: none; }

.k-auth__title {
  margin: 8px 0 6px;
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--fg); line-height: 1.15;
}
.k-auth__sub { font-size: 14px; color: var(--fg-2); margin: 0 0 20px; line-height: 1.55; }

.k-auth__form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.k-auth__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.k-auth__field { display: flex; flex-direction: column; gap: 6px; }
.k-auth__label {
  font-size: 11px; color: var(--fg-3); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.k-auth__field input,
.k-auth__field textarea,
.k-auth__field select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px; font-family: var(--font-sans); color: var(--fg);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.k-auth__field input:focus,
.k-auth__field textarea:focus,
.k-auth__field select:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.k-auth__field textarea { resize: vertical; min-height: 88px; font-family: var(--font-sans); }
.k-auth__hint { font-size: 11px; color: var(--fg-3); }

.k-auth__consent {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--fg-2);
  margin: 8px 0 4px;
}
.k-auth__consent input[type="checkbox"] { accent-color: var(--accent); }

.k-auth__error,
.k-auth__info {
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.5;
  margin-bottom: 14px;
}
.k-auth__error { background: #FFE4E6; color: #9F1239; border: 1px solid #FECDD3; }
.k-auth__info  { background: var(--accent-soft); color: var(--koyne-lavender-900); border: 1px solid #EEEBF7; }
[data-theme="dark"] .k-auth__error { background: rgba(225,29,72,0.18); color: #FDA4AF; border-color: rgba(225,29,72,0.3); }
[data-theme="dark"] .k-auth__info  { background: rgba(139,92,246,0.18); color: #C4B5FD; border-color: rgba(139,92,246,0.3); }

.k-auth__alt {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--fg-3);
}
.k-auth__alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.k-auth__alt a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .k-auth__card--wide { max-width: 100%; }
  .k-auth__row { grid-template-columns: 1fr; }
}
