/* Auth overlays V3 — alineado con tokens cliente */
.cu-auth-ov {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.cu-auth-ov.on {
  display: flex;
}
.cu-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 25, 19, 0.42);
}
.cu-auth-sheet {
  position: relative;
  width: min(100%, var(--client-shell-w, 520px));
  max-height: 92vh;
  overflow: auto;
  background: var(--cu-surface, #fff);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(29, 25, 19, 0.12);
}
.cu-auth-sheet--center {
  border-radius: 24px;
  margin: auto 16px;
  max-width: 400px;
}
.cu-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--cu-surface-muted, #f6f1e8);
  color: var(--cu-text, #1d1913);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cu-auth-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}
.cu-auth-title {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cu-text, #1d1913);
  text-align: center;
  margin: 0 0 8px;
}
.cu-auth-sub {
  font-size: 14px;
  color: var(--cu-text-secondary, #675f56);
  text-align: center;
  line-height: 1.55;
  margin: 0 0 20px;
}
.cu-auth-field {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--cu-brown, #6b4d32);
  margin: 12px 0 6px;
}
.cu-auth-input,
.cu-auth-select {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--cu-border, #e9e0d3);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--cu-text, #1d1913);
  background: var(--cu-surface-warm, #fffdf8);
}
.cu-auth-input:focus,
.cu-auth-select:focus {
  outline: none;
  border-color: var(--cu-yellow, #fcd000);
  box-shadow: 0 0 0 3px var(--cu-yellow-soft, #fff6c7);
}
.cu-auth-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--cu-text-secondary);
  margin: 14px 0;
}
.cu-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.cu-auth-legal {
  font-size: 11px;
  color: var(--cu-text-muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.cu-auth-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f0;
  border: 1px solid #f5c2c0;
  color: #8a2f2a;
  font-size: 13px;
  line-height: 1.45;
}
.cu-auth-input--error,
.cu-auth-select.cu-auth-input--error {
  border-color: #e07a72;
  box-shadow: 0 0 0 3px rgba(224, 122, 114, 0.18);
}
#regSubmitBtn.is-submitting {
  opacity: 0.82;
  pointer-events: none;
}
#regSubmitBtn.is-success {
  background: #2f8f5b;
  border-color: #2f8f5b;
}
#regSubmitBtn.is-error {
  animation: cu-auth-shake 0.35s ease;
}
@keyframes cu-auth-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
