/* =============================================
   AUTH — Authentication forms (sign in, password reset)
   ============================================= */

/* ── Auth Container ───────────────────────────────────────────────── */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: var(--art-bg-cream);
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
}

/* ── Auth Header ──────────────────────────────────────────────────── */
.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-header__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.auth-header__title {
  font-family: 'Noto Serif', serif;
  font-size: 1.5rem;
  color: var(--art-charcoal);
  margin-bottom: 0.5rem;
}

.auth-header__subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--art-muted);
}

/* ── Auth Card ────────────────────────────────────────────────────── */
.auth-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--art-border);
  border-radius: var(--art-radius-md);
  box-shadow: var(--art-shadow-soft);
}

/* ── Auth Tabs ────────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 4px;
  background: var(--art-gold-soft);
  border-radius: var(--art-radius-pill);
}

.auth-tab {
  flex: 1;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--art-radius-pill);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--art-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab:hover {
  background: rgba(198, 161, 60, 0.1);
}

.auth-tab.active {
  background: #fff;
  color: var(--art-charcoal);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ── Form Field ───────────────────────────────────────────────────── */
.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-form-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--art-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.auth-form-field {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--art-border);
  border-radius: var(--art-radius-sm);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--art-charcoal);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form-field:focus {
  outline: none;
  border-color: var(--art-terracotta);
  box-shadow: 0 0 0 3px rgba(193, 102, 82, 0.12);
}

.auth-form-field::placeholder {
  color: var(--art-muted);
}

/* ── Form Actions ─────────────────────────────────────────────────── */
.auth-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.auth-form-link {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: var(--art-link);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-form-link:hover {
  color: var(--art-terracotta);
  text-decoration: underline;
}

/* ── Form Hint ────────────────────────────────────────────────────── */
.auth-form-hint {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: var(--art-muted);
  margin-bottom: 1rem;
}

/* ── Submit Button ────────────────────────────────────────────────── */
.auth-submit-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* ── Auth Footer Text ─────────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: var(--art-muted);
}

.auth-footer a {
  color: var(--art-link);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: var(--art-terracotta);
  text-decoration: underline;
}

/* ── OTP resend section ───────────────────────────────────────────── */
.otp-resend-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--art-border);
  text-align: center;
}

.otp-resend-label {
  font-size: 0.875rem;
  color: var(--art-muted);
  margin-bottom: 0.75rem;
  font-family: 'Manrope', sans-serif;
}

.otp-resend-btn {
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.otp-resend-btn.otp-resend--disabled,
.otp-resend-btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.otp-resend-countdown {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--art-muted);
}

.otp-resend-alt {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  font-family: 'Manrope', sans-serif;
}

.otp-resend-alt a {
  color: var(--art-muted);
  text-decoration: none;
}

.otp-resend-alt a:hover {
  color: var(--art-link);
  text-decoration: underline;
}

/* ── Divider (or) ─────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: var(--art-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--art-border, #e2e0dc);
}

.auth-divider span {
  padding: 0 0.75rem;
  font-family: 'Manrope', sans-serif;
}

/* ── Google Sign-in Button (Google brand guidelines) ──────────────── */
/* Spec: https://developers.google.com/identity/branding-guidelines    */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #747775;
  border-radius: 4px;
  color: #1f1f1f;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.auth-google-btn:hover {
  background: #f8fafe;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 2px 8px 2px rgba(60, 64, 67, 0.15);
  color: #1f1f1f;
}

.auth-google-btn:active {
  background: #eef3fd;
  box-shadow: none;
  color: #1f1f1f;
}

/* button_to wraps the button in a <form> — make it full-width */
.auth-google-form {
  width: 100%;
}
