/* ─── Auth Overlay — Day Sheets ──────────────────────────────────────────────
   Shared auth UI: sign-in overlay, panels, inputs, and submit button.
   Used by organizer.html (magic-link sign-in gate) and trips.html (sign-in + trip creation).
   ─────────────────────────────────────────────────────────────────────────── */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  padding-top: max(32px, env(safe-area-inset-top));
}
.auth-overlay[hidden] { display: none; }

.auth-panel { width: 100%; max-width: 360px; }
.auth-panel[hidden] { display: none; }

.auth-wordmark {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: center;
}
.auth-heading {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 8px;
}
.auth-body {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}
.auth-body a { color: var(--color-accent); text-decoration: underline; cursor: pointer; }
.auth-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--color-border-medium);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--color-text-primary);
  background: var(--color-bg);
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.auth-input:focus { border-color: var(--color-accent); }
.auth-input::placeholder { color: var(--color-text-muted); }
.auth-input[type="date"] { color: var(--color-text-secondary); }
.auth-btn {
  width: 100%;
  height: 52px;
  background: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.auth-btn:hover:not(:disabled) { opacity: 0.88; }
.auth-btn:active:not(:disabled) { transform: scale(0.985); }
.auth-btn:disabled { opacity: 0.38; cursor: not-allowed; }
.auth-field-error { font-size: 13px; color: var(--color-danger); margin: 4px 0 8px; }
.auth-field-error[hidden] { display: none; }
.auth-error-msg {
  font-size: 14px;
  color: var(--color-danger);
  margin-bottom: 16px;
  line-height: 1.4;
}
.auth-sent-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}
