/* Auth pages (allauth template overrides): centered card on cream canvas.
   Layout + copy follow design_import/ReziDay v1.0/App.dc.html (Login screen). */

/* ---- Page layout ---- */
.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--canvas);
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- Brand + titles above the card ---- */
.auth-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* .brand-word is defined once in components.css. The auth pages are the one
   deliberate exception to the app-wide logo size: a large centered hero lockup
   (60px mark + 23px wordmark) instead of the 30px/19px chrome lockup. */
.brand-word--auth { font-size: 23px; }

.auth-titles { text-align: center; }

.auth-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.auth-sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-sub:empty { display: none; }

/* ---- Card ---- */
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- Social buttons ---- */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn--auth { width: 100%; height: 46px; }
.btn--auth svg { flex: none; }

/* ---- "sau" divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #EEE6D2;
}
.auth-divider span {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-3);
}

/* ---- Form ---- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.field-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
}
.field-link:hover { color: var(--teal-hover); }

.auth-submit { margin-top: 2px; }

/* ---- Errors ---- */
.auth-error {
  background: var(--error-tint);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--error-2);
}

.field-error {
  background: var(--error-tint);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--error-2);
}

/* ---- Info text (confirmation / done cards) ---- */
.auth-info {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
  text-align: center;
}
.auth-info strong { color: var(--ink); }

/* ---- Below the card ---- */
.auth-below {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-switch a { font-weight: 600; color: var(--teal); }
.auth-switch a:hover { color: var(--teal-hover); }

.auth-terms {
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-2);
}

.auth-back { text-align: center; }
.auth-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.auth-back a:hover { color: var(--ink); }
.auth-back svg { flex: none; }

.auth-footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
}
.auth-footer-links a { color: var(--muted-2); }
.auth-footer-links a:hover { color: var(--ink); }

/* Apple button is a design placeholder (no provider yet) — keep it solid, not greyed. */
.auth-social .btn--dark[disabled] { opacity: 1; cursor: not-allowed; }
