/* 10-customer-auth.css */
.rp-login-form {
  display: grid;
  gap: 14px;
}

.rp-login-messages {
  display: grid;
  gap: 8px;
}

.rp-login-message {
  border-radius: 16px;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

.rp-login-message--success { background: #eef8f1; color: #1d6b32; }
.rp-login-message--error { background: #fff0ee; color: #9b2b1f; }
.rp-login-message--info { background: #f5f5f7; color: var(--rp-ink); }

.rp-login-hero--clean {
  gap: 8px;
}

.rp-login-title-stack {
  display: block;
}

.rp-login-title-stack > span {
  display: block;
}

.rp-login-switch {
  margin: -2px 0 0;
  text-align: center;
  color: rgba(22,18,19,.56);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

.rp-login-switch button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--rp-ink);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rp-login-switch button:active {
  transform: scale(.98);
}

.rp-login-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--rp-muted);
  font-size: 13px;
  line-height: 1.35;
}

.rp-login-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--rp-ink);
  flex: 0 0 auto;
}

.rp-login-check a {
  color: var(--rp-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rp-login-check--muted { opacity: .82; }
.rp-label-muted { font-weight: 650; color: rgba(22,18,19,.44); }

.rp-customer-type-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rp-customer-type-choice label {
  cursor: pointer;
  min-width: 0;
}

.rp-customer-type-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rp-customer-type-choice span {
  position: relative;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--rp-line-soft);
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--rp-ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--rp-ease);
}

.rp-customer-type-choice span::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(22,18,19,.28);
  background: #fff;
  flex: 0 0 auto;
}

.rp-customer-type-choice strong {
  color: var(--rp-ink);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.02em;
}

.rp-customer-type-choice input:checked + span {
  background: #fff;
  color: var(--rp-ink);
  border-color: rgba(22,18,19,.78);
}

.rp-customer-type-choice input:checked + span::before {
  border-color: var(--rp-ink);
  background: radial-gradient(circle at center, var(--rp-ink) 0 5px, transparent 5.5px);
}

.rp-customer-type-choice label:active span {
  transform: scale(.985);
}

.rp-registration-summary {
  border: 1px solid var(--rp-line-soft);
  border-radius: 18px;
  background: #f7f7f8;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
}

.rp-registration-summary strong { color: var(--rp-ink); }
.rp-registration-summary span { color: var(--rp-muted); font-size: 13px; font-weight: 750; }

.rp-account-card {
  border: 1px solid var(--rp-line-soft);
  border-radius: 22px;
  background: #f7f7f8;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.rp-account-card p {
  margin: 0;
  line-height: 1.45;
  color: var(--rp-muted);
}

.rp-account-card strong { color: var(--rp-ink); }

@media (max-width: 520px) {
  .rp-login-tabs { grid-template-columns: 1fr 1fr 1fr; }
  .rp-login-hero h2 { font-size: clamp(36px, 10vw, 52px); }
  .rp-customer-type-choice { gap: 8px; }
  .rp-customer-type-choice span { min-height: 48px; padding: 12px 11px; border-radius: 15px; }
}


.rp-account-preview--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rp-account-preview--duo article {
  aspect-ratio: 1 / 1;
  min-height: 0;
  align-content: space-between;
}

.rp-account-preview--duo strong {
  font-size: clamp(24px, 4vw, 34px);
}

@media (max-width: 520px) {
  .rp-account-preview--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* V5 area cliente loggata: ordine + dati unificati */
.rp-login-pane--account {
  display: grid;
  gap: 14px;
}

.rp-account-order-box {
  border: 1px solid var(--rp-line-soft);
  border-radius: 26px;
  background: #f7f7f8;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.rp-account-order-box strong {
  display: block;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--rp-ink);
}

.rp-account-card--merged {
  padding: 18px;
}

.rp-account-merged-grid {
  display: grid;
  gap: 16px;
}

.rp-account-merged-grid section {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rp-account-merged-grid small {
  color: rgba(22,18,19,.48);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rp-account-mini {
  font-size: 13px;
  font-weight: 800;
  color: rgba(22,18,19,.52) !important;
}

@media (min-width: 620px) {
  .rp-account-merged-grid {
    grid-template-columns: .85fr 1.15fr;
    align-items: start;
  }
}

/* V6 area cliente: ultimi ordini e dati compatti */
.rp-account-order-box--interactive {
  gap: 14px;
}

.rp-account-box-title {
  display: grid;
  gap: 8px;
}

.rp-account-orders-list {
  display: grid;
  gap: 8px;
}

.rp-account-order-row {
  width: 100%;
  border: 1px solid rgba(22,18,19,.08);
  border-radius: 18px;
  background: #fff;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--rp-ink);
  transition: transform .18s var(--rp-ease), border-color .18s ease, background .18s ease;
}

.rp-account-order-row:active {
  transform: scale(.985);
}

.rp-account-order-row > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rp-account-order-row strong {
  font-size: 15px;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--rp-ink);
}

.rp-account-order-row small {
  font-size: 12px;
  line-height: 1.15;
  font-weight: 750;
  color: rgba(22,18,19,.48);
}

.rp-order-row-side {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.rp-order-row-side b {
  font-size: 13px;
  line-height: 1;
  color: var(--rp-ink);
}

.rp-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 5px 8px 4px;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
}

.rp-order-status.is-pending {
  background: #f4f4f5;
  color: rgba(22,18,19,.62);
}

.rp-order-status.is-working {
  background: #fff4df;
  color: #8a5a08;
}

.rp-order-status.is-ok {
  background: #edf7ef;
  color: #276737;
}

.rp-order-status.is-alert {
  background: #fff0ee;
  color: #9b2b1f;
}

.rp-account-order-detail {
  display: grid;
  gap: 12px;
}

.rp-account-back {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(22,18,19,.58);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.rp-account-detail-head {
  display: grid;
  gap: 8px;
}

.rp-account-detail-head strong {
  font-size: clamp(24px, 4vw, 32px);
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--rp-ink);
}

.rp-account-detail-head .rp-order-status {
  justify-self: start;
}

.rp-account-status-text,
.rp-account-order-note {
  margin: 0;
  color: rgba(22,18,19,.62);
  font-size: 14px;
  line-height: 1.38;
  font-weight: 720;
}

.rp-account-order-note {
  border-radius: 14px;
  background: #fff0ee;
  color: #9b2b1f;
  padding: 10px 12px;
}

.rp-account-order-facts {
  margin: 0;
  display: grid;
  gap: 7px;
}

.rp-account-order-facts div {
  border-top: 1px solid rgba(22,18,19,.07);
  padding-top: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rp-account-order-facts dt,
.rp-account-order-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.rp-account-order-facts dt {
  color: rgba(22,18,19,.48);
  font-weight: 850;
}

.rp-account-order-facts dd {
  color: var(--rp-ink);
  font-weight: 850;
  text-align: right;
}

.rp-account-order-facts a {
  color: var(--rp-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rp-account-empty-orders {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(22,18,19,.08);
  padding: 14px;
  display: grid;
  gap: 5px;
}

.rp-account-empty-orders strong {
  font-size: 15px;
  color: var(--rp-ink);
}

.rp-account-empty-orders span {
  color: rgba(22,18,19,.56);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 720;
}

.rp-account-card--compact {
  border-radius: 20px;
  padding: 14px;
  gap: 10px;
}

.rp-account-compact-grid {
  gap: 10px;
}

.rp-account-compact-grid section {
  gap: 5px;
}

.rp-account-compact-lines {
  display: grid;
  gap: 3px;
}

.rp-account-compact-lines p {
  margin: 0;
  font-size: 13px;
  line-height: 1.24;
  color: rgba(22,18,19,.62);
  overflow-wrap: anywhere;
}

.rp-account-compact-lines strong {
  color: var(--rp-ink);
  font-size: 14px;
}

.rp-account-card--compact .rp-account-mini {
  margin-top: 2px;
  text-transform: capitalize;
}

@media (max-width: 520px) {
  .rp-account-order-row {
    align-items: flex-start;
  }
  .rp-order-row-side {
    gap: 6px;
  }
}
