﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  display: flex;
  background: #fbfaf8;
}

.login-contenedor {
  display: flex;
  width: 100%;
  height: 100vh;
}

.login-izquierda {
  background: linear-gradient(135deg, #2f2a2c, #b62b5d 58%, #d9a4b8);
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 40px;
}

.logo-login {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  background: white;
}

.login-izquierda p {
  font-size: 20px;
}

.login-derecha {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fbfaf8;
  padding: 40px;
}

.login-caja {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 34px;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(40,32,35,0.08);
}

.login-caja h2 {
  color: #b62b5d;
  font-size: 32px;
  margin-bottom: 5px;
}

.login-subtitulo {
  color: #888;
  margin-bottom: 30px;
  font-size: 15px;
}

.campo {
  margin-bottom: 20px;
}

.campo label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
  font-weight: bold;
}

.campo input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.campo input:focus {
  border-color: #b62b5d;
  box-shadow: 0 0 0 3px rgba(182,43,93,0.15);
}

.olvide {
  display: block;
  text-align: right;
  color: #b62b5d;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 20px;
}

.olvide:hover {
  text-decoration: underline;
}

.boton-login {
  width: 100%;
  padding: 14px;
  background-color: #b62b5d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.boton-login:hover {
  background-color: #8f2049;
  transform: scale(1.02);
}

.separador {
  text-align: center;
  margin: 20px 0;
  color: #aaa;
  font-size: 14px;
  position: relative;
}

.separador::before,
.separador::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background-color: #ddd;
}

.separador::before { left: 0; }
.separador::after { right: 0; }

.registro-texto {
  text-align: center;
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
}

.registro-texto a {
  color: #b62b5d;
  text-decoration: none;
  font-weight: bold;
}

.registro-texto a:hover {
  text-decoration: underline;
}

.volver {
  display: block;
  text-align: center;
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.volver:hover {
  color: #b62b5d;
}

/* MODAL OLVIDÉ CONTRASEÑA */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-caja {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.modal-caja h3 {
  color: #b62b5d;
  font-size: 24px;
  margin-bottom: 5px;
}

.modal-subtitulo {
  color: #888;
  font-size: 14px;
  margin-bottom: 25px;
}

.modal-cerrar {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
}

.modal-cerrar:hover {
  color: #b62b5d;
}

@media (max-width: 768px) {
  body { height: auto; }
  .login-contenedor { flex-direction: column; height: auto; min-height: 100vh; }
  .login-izquierda { width: 100%; padding: 35px 20px 25px; }
  .logo-login { width: 110px; height: 110px; }
  .login-izquierda p { font-size: 16px; }
  .login-derecha { width: 100%; padding: 30px 20px 40px; }
  .login-caja h2 { font-size: 26px; }
  .login-subtitulo { margin-bottom: 20px; }
  .modal-caja { margin: 15px; padding: 25px; max-width: 100%; }
}

/* PREMIUM AUTH POLISH */
body {
  color: #2f2a2c;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.login-izquierda {
  position: relative;
  isolation: isolate;
  background: linear-gradient(140deg, rgba(47, 42, 44, 0.96), rgba(143, 32, 73, 0.9)), url("https://images.unsplash.com/photo-1483985988355-763728e1935b?w=1200&q=75") center/cover;
}

.login-izquierda::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 45%);
  z-index: -1;
}

.logo-login {
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 44px rgba(47, 42, 44, 0.22);
}

.login-izquierda p {
  max-width: 360px;
  line-height: 1.45;
}

.login-caja,
.modal-caja {
  border: 1px solid #eadfda;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(47, 42, 44, 0.08);
}

.login-caja h2,
.modal-caja h3 {
  color: #2f2a2c;
  line-height: 1.12;
}

.login-subtitulo,
.modal-subtitulo,
.registro-texto,
.campo label {
  color: #756b70;
}

.campo input {
  min-height: 46px;
  border-color: #eadfda;
  background: #fff;
}

.campo input:focus {
  border-color: #8f2049;
  box-shadow: 0 0 0 4px rgba(143, 32, 73, 0.12);
}

.boton-login {
  min-height: 48px;
  background: #2f2a2c;
  border-radius: 8px;
}

.boton-login:hover {
  background: #8f2049;
  transform: translateY(-1px);
}

.olvide,
.registro-texto a,
.volver:hover {
  color: #8f2049;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(143, 32, 73, 0.28);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .login-izquierda {
    min-height: 260px;
  }

  .login-derecha {
    align-items: flex-start;
  }

  .login-caja {
    padding: 28px 22px;
  }
}

/* AUTH EXPERIENCE FINAL */
:root {
  --auth-ink: #2f2a2c;
  --auth-muted: #756b70;
  --auth-brand: #b62b5d;
  --auth-brand-dark: #8f2049;
  --auth-line: #eadfda;
  --auth-soft: #fbfaf8;
  --auth-blush: #f7f1ee;
  --auth-gold: #c9a45c;
  --auth-shadow: 0 24px 70px rgba(47, 42, 44, 0.10);
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  height: auto;
  background:
    radial-gradient(circle at 12% 12%, rgba(182, 43, 93, 0.07), transparent 28%),
    linear-gradient(135deg, #fbfaf8 0%, #f7f1ee 100%);
}

.login-contenedor {
  min-height: 100vh;
  height: auto;
  padding: clamp(18px, 4vw, 42px);
  gap: 0;
}

.login-izquierda,
.login-derecha {
  min-height: calc(100vh - clamp(36px, 8vw, 84px));
}

.login-izquierda {
  width: 48%;
  align-items: flex-start;
  padding: clamp(34px, 5vw, 72px);
  border-radius: 18px 0 0 18px;
  overflow: hidden;
  text-align: left;
}

.login-izquierda::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  pointer-events: none;
}

.logo-login {
  width: 96px;
  height: 96px;
  margin: 0 0 28px;
}

.auth-eyebrow,
.auth-form-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--auth-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-izquierda h1 {
  max-width: 420px;
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.login-izquierda p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.auth-beneficios-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.auth-beneficios-mini span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.login-derecha {
  width: 52%;
  padding: clamp(24px, 5vw, 70px);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(18px);
}

.login-caja {
  max-width: 430px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-caja h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: 0;
}

.login-subtitulo {
  max-width: 360px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.campo {
  margin-bottom: 16px;
}

.campo label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.campo input {
  height: 50px;
  padding: 0 15px;
  border-radius: 10px;
  color: var(--auth-ink);
  font-family: inherit;
}

.campo input::placeholder {
  color: #b5aaae;
}

.olvide {
  width: fit-content;
  margin: -4px 0 22px auto;
  font-weight: 600;
}

.boton-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  box-shadow: 0 14px 28px rgba(47, 42, 44, 0.16);
}

.boton-login:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.separador {
  margin: 24px 0;
}

.separador span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.76);
}

.registro-texto {
  margin-bottom: 14px;
}

.volver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  color: var(--auth-muted);
  background: #fff;
  font-weight: 600;
}

.volver:hover {
  border-color: #d9c7c0;
  background: var(--auth-blush);
  text-decoration: none;
}

.modal-overlay {
  padding: 18px;
  background: rgba(47, 42, 44, 0.42);
  backdrop-filter: blur(10px);
}

.modal-caja {
  border-radius: 12px;
  padding: 34px;
}

.modal-cerrar {
  width: 36px;
  height: 36px;
  border: 1px solid var(--auth-line);
  border-radius: 50%;
  background: #fff;
}

.notificacion-form {
  border-radius: 10px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .login-contenedor {
    display: block;
    padding: 0;
  }

  .login-izquierda,
  .login-derecha {
    width: 100%;
    min-height: auto;
    border-radius: 0;
  }

  .login-izquierda {
    padding: 30px 22px;
  }

  .login-izquierda::before {
    inset: 12px;
  }

  .logo-login {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
  }

  .login-izquierda h1 {
    font-size: 30px;
  }

  .auth-beneficios-mini {
    margin-top: 12px;
  }

  .login-derecha {
    padding: 30px 20px 42px;
    box-shadow: none;
  }

  .login-caja {
    max-width: 460px;
    margin: 0 auto;
  }
}

/* DESKTOP HEIGHT BALANCE */
@media (min-width: 901px) {
  body {
    overflow: hidden;
  }

  .login-contenedor {
    height: 100vh;
    min-height: 650px;
    padding: clamp(14px, 2.8vw, 28px);
  }

  .login-izquierda,
  .login-derecha {
    min-height: 0;
    height: 100%;
  }

  .login-izquierda {
    padding: clamp(28px, 4vw, 54px);
  }

  .login-izquierda::before {
    inset: 16px;
  }

  .logo-login {
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
  }

  .login-izquierda h1 {
    font-size: clamp(34px, 3.4vw, 48px);
  }

  .login-derecha {
    padding: clamp(24px, 4vw, 54px);
  }

  .login-caja h2 {
    font-size: clamp(34px, 3vw, 48px);
  }

  .login-subtitulo {
    margin-bottom: 24px;
  }

  .campo {
    margin-bottom: 14px;
  }

  .separador {
    margin: 20px 0;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .login-contenedor {
    min-height: 600px;
    padding: 12px;
  }

  .login-izquierda,
  .login-derecha {
    padding: 30px 46px;
  }

  .auth-beneficios-mini {
    gap: 8px;
  }

  .auth-beneficios-mini span {
    padding: 8px 10px;
  }
}

/* MOBILE PREMIUM PASS */
@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 320px;
    display: block;
  }

  .login-contenedor {
    min-height: 100svh;
    background: linear-gradient(180deg, rgba(47, 42, 44, 0.03), rgba(247, 241, 238, 0.82));
  }

  .login-izquierda {
    min-height: 0;
    padding: 26px 20px 22px;
  }

  .login-izquierda::before {
    inset: 10px;
    border-radius: 12px;
  }

  .logo-login {
    width: 66px;
    height: 66px;
    margin-bottom: 14px;
  }

  .auth-eyebrow,
  .auth-form-eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .login-izquierda h1 {
    max-width: 11ch;
    font-size: clamp(28px, 8vw, 35px);
    line-height: 1.04;
  }

  .login-izquierda p {
    max-width: 30ch;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .auth-beneficios-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 18px;
    gap: 8px;
  }

  .auth-beneficios-mini span {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  .login-derecha {
    padding: 22px 18px 34px;
    background: transparent;
  }

  .login-caja {
    max-width: 450px;
    padding: 22px 18px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(47, 42, 44, 0.08);
    backdrop-filter: blur(14px);
  }

  .login-caja h2 {
    margin-bottom: 8px;
    font-size: clamp(28px, 8vw, 35px);
  }

  .login-subtitulo {
    max-width: 32ch;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .campo {
    margin-bottom: 13px;
  }

  .campo label {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .campo input {
    height: 46px;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 15px;
  }

  .olvide {
    margin: -2px 0 18px auto;
    font-size: 12px;
  }

  .boton-login {
    min-height: 46px;
    border-radius: 9px;
    font-size: 15px;
  }

  .separador {
    margin: 18px 0;
  }

  .registro-texto {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .volver {
    min-height: 40px;
    border-radius: 9px;
    font-size: 12px;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .modal-caja {
    max-width: 100%;
    padding: 24px 18px 20px;
    border-radius: 14px 14px 10px 10px;
  }

  .modal-caja h3 {
    font-size: 23px;
  }

  .modal-subtitulo {
    font-size: 13px;
    line-height: 1.55;
  }

  .modal-cerrar {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .notificacion-form {
    padding: 11px 14px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .login-izquierda {
    padding: 22px 18px 20px;
  }

  .auth-beneficios-mini {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .login-derecha {
    padding: 18px 14px 28px;
  }

  .login-caja {
    padding: 20px 16px;
  }
}

@media (max-width: 390px) {
  .login-izquierda h1,
  .login-caja h2 {
    font-size: 26px;
  }

  .login-subtitulo,
  .login-izquierda p {
    font-size: 13px;
  }

  .login-caja {
    padding: 18px 14px;
  }
}

