/*
  Sign-in pages of the customer UI (_CustomerAuthLayout: sign in, create account, email confirmation, password recovery),
  D164 look by P4. Builds on customer.css (P1: tokens, the owl top bar, cu-auth-card, form pieces) and only adds the card
  head: an icon tile, the heading and lede centred, the links under the form centred. Every class is "cu-" prefixed,
  logical properties only, works at 375px, visible focus, text contrast at least 4.5:1, no script needed.
*/

.cu-auth__top,
.cu-auth__main,
.cu-auth .cu-foot {
  max-width: 440px;
}

/* Icon tile, heading and lede, centred above the form. */
.cu-auth-card__head {
  align-items: center;
  gap: 6px;
  text-align: center;
}

/* The sign-in layout has no cu-page wrapper, so the browser's heading / paragraph margins are reset here. */
.cu-auth-card__head .cu-h1,
.cu-auth-card__head .cu-lede {
  margin: 0;
}

.cu-auth-card__head .cu-lede {
  max-width: 42ch;
  color: var(--cu-text-2);
}

.cu-auth-icon {
  width: 52px;
  height: 52px;
  margin-block-end: 8px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--cu-brand-soft);
  box-shadow: inset 0 0 0 1px var(--cu-brand-line);
  color: var(--cu-brand);
}

.cu-auth-icon--ok {
  background: var(--cu-ok-soft);
  box-shadow: inset 0 0 0 1px var(--cu-ok-line);
  color: var(--cu-ok);
}

.cu-auth-icon--warm {
  background: var(--cu-warm-soft);
  box-shadow: inset 0 0 0 1px var(--cu-warm-line);
  color: var(--cu-warm);
}

/* The links under the form («حساب ندارید؟ شروع رایگان», «بازگشت به ورود»), centred. */
.cu-auth-card__links {
  align-items: center;
  text-align: center;
}

.cu-auth-card__links a {
  font-weight: 600;
}

/* Password rules as a quiet checklist under the field. */
.cu-auth-card .cu-rules {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.cu-auth-card .cu-rules li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cu-auth-card .cu-rules li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: var(--cu-r-pill);
  background: var(--cu-brand-track);
}

/* Set by customer-auth.js while the person types: green when the rule is met, red when it is not. */
.cu-auth-card .cu-rules li.is-met {
  color: var(--cu-ok);
}

.cu-auth-card .cu-rules li.is-met::before {
  background: var(--cu-ok-dot);
}

.cu-auth-card .cu-rules li.is-unmet {
  color: var(--cu-warm);
}

.cu-auth-card .cu-rules li.is-unmet::before {
  background: var(--cu-warm);
}

@media (max-width: 480px) {
  .cu-auth {
    padding-inline: 16px;
  }

  .cu-auth-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

/* ---------- System pages (not found, error, access denied, lockout), 2026-11-22 ---------- */

/* What the page refers to (the address asked for, the request reference): a quiet box, the value LTR. */
.cu-auth-ref {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--cu-line);
  border-radius: var(--cu-r-lg);
  background: var(--cu-surface-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cu-auth-ref dt {
  color: var(--cu-muted);
  font-size: var(--cu-fs-xs);
  font-weight: 600;
}

.cu-auth-ref dd {
  margin: 0;
  min-width: 0;
}

.cu-auth-ref code {
  color: var(--cu-text);
  font-size: var(--cu-fs-sm);
  overflow-wrap: anywhere;
}

.cu-auth-ref__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

/* "What to do next": the soft brand wash of the info message. */
.cu-auth-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--cu-brand-line);
  border-radius: var(--cu-r-lg);
  background: var(--cu-brand-wash);
  color: var(--cu-text-2);
  font-size: var(--cu-fs-sm);
}

.cu-auth-note strong {
  color: var(--cu-brand-ink);
  font-size: var(--cu-fs-md);
}

.cu-auth-code {
  color: var(--cu-muted);
  font-size: var(--cu-fs-xs);
}

.cu-auth-code code {
  font-weight: 700;
}
