/* FINAMEX — login pantalla dividida (referencia visual) */

:root {
  --navy-deep: #000b1a;
  --navy-mid: #001a33;
  --navy-text: #0a2342;
  --white: #ffffff;
  --muted-placeholder: rgba(255, 255, 255, 0.45);
  --btn-bg: #ececec;
  --btn-text: #3a3a3a;
  --dot-outline: rgba(10, 35, 66, 0.35);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ——— Columna izquierda ——— */
.promo-col {
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--navy-text);
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3.5rem);
}

.promo-col__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.promo-col__stores {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  padding-top: 0.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-badge:focus-visible {
  outline: 2px solid var(--navy-text);
  outline-offset: 3px;
}

.store-badge:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.store-badge img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
}

/* Slider (logo integrado en este bloque, no en el top de la columna) */
.hero-slider {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.hero-slider__brand {
  width: 100%;
  margin-bottom: 1.25rem;
  text-align: start;
}

.hero-slider__logo {
  display: block;
  height: clamp(32px, 6vw, 46px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.hero-slider__viewport {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.hero-slider__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slider__slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 0.5rem;
}

.hero-slider__slide img {
  display: block;
  width: 100%;
  max-height: min(42vh, 380px);
  object-fit: contain;
  object-position: center bottom;
  margin: 0 auto;
}

.hero-slider__caption {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--navy-text);
  margin: 1.75rem auto 1.25rem;
  max-width: 26rem;
}

.hero-slider__caption strong {
  font-weight: 700;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--dot-outline);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-slider__dot:hover {
  border-color: rgba(10, 35, 66, 0.55);
}

.hero-slider__dot.is-active {
  background: #6b7280;
  border-color: #6b7280;
  transform: scale(1.05);
}

/* ——— Columna derecha (formulario) ——— */
.form-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.75rem, 6vw, 4.5rem);
  background: linear-gradient(90deg, #00060f 0%, var(--navy-deep) 35%, var(--navy-mid) 100%);
  color: var(--white);
}

.form-col__register-link {
  align-self: flex-end;
  margin: 0 -145px 16.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.form-col__register-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-col__center {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.form-col__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 2.25rem;
  letter-spacing: -0.02em;
  align-self: flex-start;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.field__input {
  width: 100%;
  padding: 0.35rem 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.field__input::placeholder {
  color: var(--muted-placeholder);
}

.field__input:focus {
  border-bottom-color: var(--white);
}

.btn-ingresar {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--btn-text);
  background: var(--btn-bg);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-ingresar:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-ingresar:active {
  transform: translateY(1px);
}

.form-col__forgot {
  display: block;
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
}

.form-col__forgot:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__track {
    transition: none;
  }
}
