/* ── Honora auth screens (login, register, magic link, password reset) ── */
/* Mirrors the admin login design. Uses app design tokens (--color-*, etc.) */

.hidden { display: none !important; }

.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: linear-gradient(160deg, #15355A 0%, #0F2D4A 60%, #1F5C52 100%);
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Brand ──────────────────────────────────────────────── */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-wordmark {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ── Card ───────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(10, 31, 51, .45), 0 4px 12px rgba(10, 31, 51, .25);
  padding: 36px 32px 30px;
}

.auth-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--color-text);
}

.auth-sub {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}

/* ── Fields ─────────────────────────────────────────────── */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

select.auth-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid transparent;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}

.auth-input::placeholder {
  color: var(--color-text-muted);
  font-weight: 400;
}

.auth-input:focus {
  border-color: var(--color-border);
  background: var(--color-surface);
}

/* ── Buttons ────────────────────────────────────────────── */
.auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-teal);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  text-decoration: none;
  transition: filter .14s, transform .12s;
}

.auth-submit:hover { filter: brightness(1.08); }
.auth-submit:active { transform: translateY(1px); }

.auth-submit-ghost {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  text-decoration: none;
  transition: background .14s;
}

.auth-submit-ghost:hover { background: var(--color-bg); }

/* ── Inline alert (form errors) ─────────────────────────── */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid color-mix(in srgb, var(--color-error) 28%, transparent);
  font-size: 13px;
  font-weight: 500;
  line-height: var(--lh-snug);
}

.auth-alert ul { margin: 0; padding-left: var(--space-4); }

/* ── Divider ────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Footer links ───────────────────────────────────────── */
.auth-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

.auth-foot a {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 500;
}

.auth-foot a:hover { text-decoration: underline; }

/* ── Flash in wizard layout (dark background) ───────────── */
.auth-flash-notice,
.auth-flash-alert {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.auth-flash-notice {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}

.auth-flash-alert {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid color-mix(in srgb, var(--color-error) 28%, transparent);
}
