/**
 * Méndez Rojo — páginas de cuenta (login / registro / recuperar).
 * Coherente con shop-editorial + tokens; inspiración ecommerce bodega (claridad, confianza).
 */

.mr-auth-page {
  --mr-auth-card-radius: 16px;
  --mr-auth-aside-plum: #261620;
  font-family: var(--mr-font-ui, "Poppins", system-ui, sans-serif);
}

.mr-auth-page .mr-shop-inner-heading {
  margin-bottom: 1.25rem !important;
}

/* Alertas flash en flujo auth */
.mr-auth-alert {
  font-family: var(--mr-font-ui, "Poppins", sans-serif);
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.mr-auth-alert.alert-success {
  background: rgba(40, 120, 80, 0.1);
  border-color: rgba(40, 120, 80, 0.25);
  color: #1a4d32;
}

.mr-auth-alert.alert-danger {
  background: rgba(160, 45, 45, 0.08);
  border-color: rgba(160, 45, 45, 0.28);
  color: #5c1a1a;
}

.mr-auth-alert.alert-warning {
  background: rgba(180, 130, 40, 0.12);
  border-color: rgba(180, 130, 40, 0.35);
  color: #5c4510;
}

.mr-auth-alert.alert-info {
  background: rgba(58, 53, 67, 0.08);
  border-color: rgba(58, 53, 67, 0.15);
  color: var(--mr-heading-plum, #3a3543);
}

.mr-auth-alert p,
.mr-auth-alert .mb-0 {
  margin-bottom: 0;
}

/* Layout: panel lateral + tarjeta (desktop); ancho completo del contenedor .container */
.mr-auth-split {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: var(--mr-auth-card-radius);
  overflow: hidden;
  box-shadow: 0 14px 48px rgba(38, 22, 32, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

@media (min-width: 992px) {
  .mr-auth-split {
    grid-template-columns: minmax(220px, 34%) 1fr;
    min-height: 420px;
  }
}

.mr-auth-split__aside {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(
    165deg,
    var(--mr-auth-aside-plum) 0%,
    #3a2835 48%,
    #2a1e28 100%
  );
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.mr-auth-split__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 20% 20%,
    rgba(180, 150, 70, 0.18),
    transparent 55%
  );
  pointer-events: none;
}

.mr-auth-split__aside > * {
  position: relative;
  z-index: 1;
}

.mr-auth-split__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mr-gold, #b49646);
  margin: 0;
}

.mr-auth-split__quote {
  font-family: var(--mr-font-body, "Baskervville", Georgia, serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  font-style: italic;
  margin: 0;
  opacity: 0.95;
}

.mr-auth-split__meta {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0.72;
  margin: 0.5rem 0 0;
}

.mr-auth-split__main {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: linear-gradient(180deg, #fdfcfa 0%, #faf8f5 100%);
}

/* Contenido del formulario: usa todo el ancho de la columna principal */
.mr-auth-card {
  width: 100%;
  max-width: none;
}

.mr-auth-lead {
  font-family: var(--mr-font-body, "Baskervville", Georgia, serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--mr-heading-plum, #3a3543);
  margin: 0 0 1.35rem;
}

.mr-auth-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--mr-muted, #8c8c8c);
}

.mr-auth-card .form-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mr-heading-plum, #3a3543);
  margin-bottom: 0.35rem;
}

/* Anula .form-control global (texto claro / 0.7rem) dentro del bloque auth */
.mr-auth-card .form-control,
.mr-auth-card .form-select {
  display: block;
  width: 100%;
  height: auto;
  min-height: calc(1.45em + 0.65rem + 2px);
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--mr-text, #212120);
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  text-transform: none;
  box-shadow: inset 0 1px 2px rgba(38, 22, 32, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mr-auth-card .form-control::placeholder {
  color: var(--mr-muted, #8c8c8c);
  opacity: 1;
}

.mr-auth-card .form-control:focus,
.mr-auth-card .form-select:focus {
  border-color: var(--mr-gold, #b49646);
  box-shadow: 0 0 0 0.15rem rgba(180, 150, 70, 0.22);
  outline: none;
}

.mr-auth-card .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%233a3543' d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 12px;
  padding-right: 2rem;
  appearance: none;
}

.mr-auth-grid-2 {
  display: grid;
  gap: 0.75rem 1rem;
}

@media (min-width: 576px) {
  .mr-auth-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.mr-auth-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.mr-auth-actions .btn_fb {
  min-width: 10rem;
  padding: 0.6rem 1.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 4px;
}

.mr-auth-actions .btn-outline-secondary {
  border-color: rgba(0, 0, 0, 0.22);
  color: var(--mr-heading-plum, #3a3543);
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
}

.mr-auth-actions .btn-outline-secondary:hover {
  background: rgba(58, 53, 67, 0.06);
  border-color: rgba(0, 0, 0, 0.28);
  color: var(--mr-plum, #261620);
}

.mr-auth-links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.mr-auth-links a {
  color: var(--mr-heading-plum, #3a3543);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 150, 70, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.mr-auth-links a:hover {
  color: var(--mr-gold, #b49646);
  border-bottom-color: var(--mr-gold, #b49646);
}

.mr-auth-links__sep {
  color: rgba(0, 0, 0, 0.25);
  user-select: none;
}

/* Franja confianza (estilo tiendas bodega) */
.mr-auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mr-muted, #8c8c8c);
}

.mr-auth-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mr-auth-trust__item i {
  color: var(--mr-gold, #b49646);
  font-size: 0.95rem;
}

.mr-auth-check .form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.15em;
  border-color: rgba(0, 0, 0, 0.25);
}

.mr-auth-check .form-check-input:checked {
  background-color: var(--mr-gold, #b49646);
  border-color: #9a7f3a;
}

.mr-auth-check .form-check-label {
  font-size: 0.88rem;
  color: var(--mr-heading-plum, #3a3543);
}

@media (max-width: 991.98px) {
  .mr-auth-split {
    border-radius: var(--mr-auth-card-radius);
  }

  .mr-auth-split__aside {
    padding: 1.35rem 1.25rem;
  }

  .mr-auth-split__quote {
    font-size: 1rem;
  }
}
