/* ============================================================
   Utilmint — auth.css  (login, register, password reset)
   ============================================================ */

.auth-page {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background: var(--mint-pale);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
}

/* ─── Header ─────────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.auth-logo img { height: 32px; width: auto; }

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}
.auth-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* ─── Flash / alerts ─────────────────────────────────────────── */
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.auth-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}
.auth-alert--success {
  background: var(--mint-pale);
  border: 1px solid var(--mint-light);
  color: var(--mint);
}
.auth-alert--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}
.auth-alert ul {
  margin: 0.25rem 0 0 1rem;
  padding: 0;
  list-style: disc;
}
.auth-alert ul li { margin-bottom: 0.125rem; }

/* ─── Social login ────────────────────────────────────────────── */
.auth-social { margin-bottom: 1.25rem; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid #dadce0;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 4px rgba(60,64,67,.15);
  color: #3c4043;
}
.btn-google svg { flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-faint);
  font-size: 0.8125rem;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Form fields ─────────────────────────────────────────────── */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.auth-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-mid);
}
.auth-field input {
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.auth-field input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(26,158,117,.1);
}
.auth-field input.is-invalid { border-color: #ef4444; }
.auth-field__error {
  font-size: 0.8125rem;
  color: #dc2626;
  margin: 0;
}
.auth-field__hint {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin: 0;
}

/* Password field with show/hide toggle */
.auth-field__pw-wrap {
  position: relative;
}
.auth-field__pw-wrap input { padding-right: 2.75rem; }
.auth-field__pw-toggle {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  color: var(--text-faint);
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
}
.auth-field__pw-toggle:hover { color: var(--mint); }

/* ─── Row helpers ─────────────────────────────────────────────── */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--navy-mid);
  cursor: pointer;
}
.auth-remember input { accent-color: var(--mint); cursor: pointer; }
.auth-forgot {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mint);
}
.auth-forgot:hover { text-decoration: underline; }

/* ─── Submit button ───────────────────────────────────────────── */
.auth-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.75rem;
  margin-top: 0.25rem;
}

/* ─── Footer links ────────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.auth-footer a {
  color: var(--mint);
  font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ─── Success / info state (full card) ────────────────────────── */
.auth-message {
  text-align: center;
  padding: 1rem 0;
}
.auth-message__icon { font-size: 2.75rem; margin-bottom: 1rem; line-height: 1; }
.auth-message__title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.auth-message__text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ─── Terms note ──────────────────────────────────────────────── */
.auth-terms {
  font-size: 0.775rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 0.75rem;
}
.auth-terms a { color: var(--text-muted); }

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 1.75rem 1.25rem; }
}
