/* ===================================================
   Auth — estilos globales
   Tokens: #FFC300 primario · #0C2145 fondo · Poppins
   =================================================== */

/* Reset y base */
.auth-body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #000;
  height: 100vh;
  overflow: hidden;
}

/* Pantalla fullscreen */
.auth-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Fondo de pantallas de autenticación */
.auth-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/FONDO POLLA PRO 2026 KV-GR RETOCADO MOBILE.jpg');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

@media (min-width: 768px) {
  .auth-bg {
    background-image: url('../img/FONDO POLLA PRO 2026 KV-GR RETOCADO-DESKTOP.jpg');
  }
}

.auth-video-overlay {
  display: none;
}

/* Logo */
.auth-logo {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}

.auth-logo img {
  width: 230px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(255, 195, 0, .45));
}

/* ── Gradiente inferior full-width (separa del contenedor centrado) ── */
.auth-screen::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, .3) 55%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* ── Contenedor inferior (welcome + login + forgot) ── */
.auth-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  box-sizing: border-box;
  padding: 0 28px 32px;
  background: transparent;
  z-index: 3;
}

.auth-bottom > *:not(.watermark-white):not(.watermark-blue) {
  position: relative;
  z-index: 1;
}

.auth-bottom__text {
  text-align: center;
  padding-top: 20px;
  margin-bottom: 18px;
}

.auth-bottom__text h1,
.auth-bottom__text h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.auth-bottom__text p {
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* ── Botones ── */
.btn-auth-gold {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  background: #FFC300;
  color: #1a1200;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 12px;
}

.btn-auth-ghost {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 28px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 12px;
}

.btn-auth-outline-dark {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  background: transparent;
  color: #1a1a2e;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid #1a1a2e;
  border-radius: 28px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 12px;
}

/* ── Inputs dark (login / forgot) ── */
.auth-field {
  width: 100%;
  padding: 13px 18px;
  background: rgba(0, 0, 0, .60);
  border: 1.5px solid rgba(255, 255, 255, .70);
  border-radius: 28px;
  color: rgba(255, 255, 255, .95);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.auth-field::placeholder {
  color: rgba(255, 255, 255, .70);
}

.auth-field:focus {
  border-color: #FFC300;
  box-shadow: 0 0 0 2px rgba(255, 195, 0, .3);
}

/* ── Link ── */
.auth-link {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.auth-link:hover {
  color: #FFC300;
}

/* ── Dots de progreso ── */
.auth-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}

.auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transition: width .3s ease, border-radius .3s ease, background-color .3s ease;
}

.auth-dot--filled {
  background: #FFC300;
}

.auth-dot--active {
  width: 22px;
  border-radius: 4px;
  background: #FFC300;
}

/* ── Balón decorativo (welcome) ── */
.auth-ball {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 160px;
  height: 160px;
  pointer-events: none;
}

/* ── Alerts ── */
.auth-alert-danger {
  background: rgba(239, 68, 68, .15);
  border: 1px solid rgba(239, 68, 68, .4);
  border-radius: 12px;
  color: #fca5a5;
  padding: 10px 16px;
  font-size: 13px;
  margin-bottom: 12px;
}

.auth-alert-danger ul {
  margin: 0;
  padding-left: 16px;
}

.auth-alert-success {
  background: rgba(34, 197, 94, .15);
  border: 1px solid rgba(34, 197, 94, .4);
  border-radius: 12px;
  color: #4ade80;
  padding: 10px 16px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ── Registro: card de 3 capas ── */
.auth-register-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75%;
  z-index: 3;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .auth-register-card {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 75%;
  }
}

/* Capa 1: fondo */
.auth-register-card__bg {
  position: absolute;
  inset: 0;
  background: #F7F7F7;
  border-radius: 24px 24px 0 0;
}

/* Capa 2: watermark "26" */
.auth-register-card__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(247, 247, 247, .7);
  border-radius: 24px 24px 0 0;
}

.auth-register-card__watermark span {
  font-family: 'Poppins', sans-serif;
  font-size: 620px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -30px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Capa 3: formulario */
.auth-register-card__form {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 24px 28px;
  z-index: 5;
  background-color: #F7F7F7;
  background-image: url('../img/watermark_26_white.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.auth-register-card__form h2 {
  color: #1a1a2e;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
}

/* Inputs light (registro) */
.auth-field-light {
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, .2);
  border-radius: 28px;
  color: #374151;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.auth-field-light::placeholder {
  color: rgba(0, 0, 0, .35);
}

.auth-field-light:focus {
  border-color: rgba(0, 0, 0, .5);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .1);
}

.auth-field-light option {
  background: #fff;
  color: #374151;
}

/* Select wrapper */
.auth-select-wrap {
  position: relative;
  margin-bottom: 10px;
}

.auth-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 40px 12px 18px;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, .2);
  border-radius: 28px;
  color: #374151;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.auth-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, .4);
  pointer-events: none;
  font-size: 14px;
}

/* Campos obligatorios */
.auth-required-note {
  text-align: right;
  font-size: 11px;
  color: rgba(0, 0, 0, .4);
  margin-bottom: 6px;
}

/* Checkbox T&C */
.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #FFC300;
  flex-shrink: 0;
  cursor: pointer;
}

.auth-checkbox-row label {
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  line-height: 1.4;
}

/* Link oscuro (dentro del card blanco) */
.auth-link-dark {
  display: block;
  text-align: center;
  color: #374151;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 10px;
}

.auth-link-dark:hover {
  color: #1a1a2e;
}

/* ── OTP inputs ── */
.auth-otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-otp-input {
  width: 44px;
  height: 52px;
  background: rgba(255, 255, 255, .07);
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  outline: none;
  caret-color: #FFC300;
  box-sizing: border-box;
}

.auth-otp-input:focus {
  border-color: #FFC300;
  box-shadow: 0 0 0 2px rgba(255, 195, 0, .3);
}

.auth-otp-input.filled {
  border-color: rgba(255, 195, 0, .6);
  background: rgba(255, 195, 0, .08);
}
