.auth-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fbf9f6;
}

.auth-panel__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-panel .auth-panel__media-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* !important: gana a la regla global de reduced-motion en guidelines.css */
  transition: opacity 0.85s ease-in-out !important;
  will-change: opacity;
}

.auth-panel .auth-panel__media-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.auth-panel__media-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-panel__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 6, 16, 0.72) 0%, rgba(14, 8, 22, 0.58) 40%, rgba(12, 8, 20, 0.86) 100%),
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(107, 63, 160, 0.3), transparent 70%);
  pointer-events: none;
}

.auth-panel__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 100vh;
  padding: 2.5rem 2rem;
  text-align: center;
}

.auth-panel__logo {
  display: block;
  width: min(220px, 55%);
  margin-inline: auto;
  transition: opacity 0.25s ease;
}

.auth-panel__logo:hover,
.auth-panel__logo:focus-visible {
  opacity: 0.88;
}

.auth-panel__logo:focus-visible {
  outline: 2px solid #c9a962;
  outline-offset: 6px;
  border-radius: 4px;
}

.auth-panel__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.auth-panel__logo--mobile {
  width: 160px;
}

.auth-panel__center {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-panel__slides {
  position: relative;
  width: 100%;
  min-height: 9.5rem;
}

.auth-panel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
  pointer-events: none;
}

.auth-panel__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.auth-panel__slide.is-leaving {
  opacity: 0;
  transform: translateY(-0.6rem);
}

.auth-panel__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 249, 246, 0.72);
}

.auth-panel__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fbf9f6;
  text-wrap: balance;
}

.auth-panel__title em {
  display: block;
  margin-top: 0.2rem;
  font-style: italic;
  font-weight: 500;
  color: #c9a962;
}

.auth-panel__dots {
  position: absolute;
  top: 50%;
  right: clamp(0.85rem, 2.2vw, 1.5rem);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(-50%);
}

.auth-panel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(251, 249, 246, 0.45);
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition:
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    border-color 0.35s ease;
}

.auth-panel__dot:hover {
  border-color: rgba(232, 213, 163, 0.85);
  background: rgba(232, 213, 163, 0.35);
}

.auth-panel__dot:focus-visible {
  outline: 2px solid #c9a962;
  outline-offset: 3px;
}

.auth-panel__dot.is-active {
  height: 1.65rem;
  border-color: #e8d5a3;
  background: #c9a962;
}

.auth-panel__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(251, 249, 246, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel__slide {
    transition: none;
    transform: none;
  }
}

/* Form controls (sin cambios de marca) */
.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d1b4e;
  margin-bottom: 0.375rem;
}

.auth-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(45, 27, 78, 0.15);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus-visible {
  border-color: #6b3fa0;
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.2);
}

.auth-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #6b3fa0;
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  transition: background-color 0.15s;
}

.auth-btn-primary:hover {
  background-color: #2d1b4e;
}

.auth-btn-primary:focus-visible {
  outline: 2px solid #c9a962;
  outline-offset: 3px;
}

.auth-error {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #b91c1c;
}

.auth-password-field {
  position: relative;
}

.auth-password-field .auth-input {
  padding-right: 2.85rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgba(45, 27, 78, 0.55);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-password-toggle:hover {
  color: #6b3fa0;
  background: rgba(107, 63, 160, 0.08);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid #c9a962;
  outline-offset: 2px;
}

.auth-password-toggle__icon {
  display: block;
}
