/* ══════════════════════════════════════
   UNQO — Auth pages stylesheet
   Requires shared.css
══════════════════════════════════════ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
}

/* ── Card ────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ── Brand block ─────────────────────── */
.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand .brand-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--subtle);
  font-weight: 600;
  text-transform: uppercase;
}

.auth-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}

/* ── Page heading ────────────────────── */
.auth-card h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: center;
}

/* ── Form fields ─────────────────────── */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--mid-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--faint);
  color: var(--dark);
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.field input:focus {
  outline: none;
  border-color: var(--dark);
  background: var(--white);
}

/* ── Submit button ───────────────────── */
.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}

.auth-btn:hover { background: var(--dark-hover); }

/* ── Footer note ─────────────────────── */
.auth-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 20px;
}

.auth-note a {
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
}

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

/* ── Messages ────────────────────────── */
.auth-error {
  font-size: 13px;
  color: #c0392b;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
  display: none;
  text-align: center;
}

.auth-error.show { display: block; }

.auth-success {
  font-size: 13px;
  color: #1e7e34;
  background: #edf7ee;
  border: 1px solid #b8dfbc;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
  text-align: center;
}

/* ── Divider ─────────────────────────── */
.auth-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ── Password-reset progress bar ─────── */
.progress-bar {
  width: 0%;
  height: 4px;
  background: #27ae60;
  border-radius: 4px;
  margin-top: 14px;
  transition: width 4s linear;
  display: none;
}

/* ── Forgot-password section ─────────── */
.forgot-section { display: none; }

/* ── Centered card variant ───────────── */
.auth-card--centered { text-align: center; }

/* ── Success / info icons ────────────── */
.auth-icon      { font-size: 40px; margin-bottom: 16px; }
.auth-mail-icon { font-size: 36px; margin-bottom: 14px; }

/* ── auth-note spacing variants ──────── */
.auth-note--after-heading { margin-top: 8px; }
.auth-note--subtitle      { margin-bottom: 20px; margin-top: 0; }
.auth-note--no-top        { margin-top: 0; }
.auth-note--intro         { margin-bottom: 24px; }

/* ── auth-btn variants ───────────────── */
.auth-btn--top-gap { margin-top: 20px; }
.auth-btn--block   { display: block; text-decoration: none; }

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