/* =====================================================================
   login.css — Pantalla de acceso de Gar-Gar Frappé & Donuts.

   Dos paneles a pantalla completa:
     · Izquierda: marca en ROSA SÓLIDO (#e42eb4, el de gargarfrappe.com)
       plano y el logo grande al centro. Termina en una
       ola de crema que "chorrea" hacia el formulario.
     · Derecha: formulario sobre fondo crema, campos tipo píldora y
       botón rosa.
   En pantallas angostas el panel de marca se convierte en una franja
   superior. Solo fuentes del sistema (la
   caja trabaja sin depender de internet).

   Índice:
     1. Base
     2. Panel de marca
     3. Panel de acceso
     4. Campos
     5. Botón "Entrar"
     6. Responsive
   ===================================================================== */

/* ---------- 1. BASE ---------- */
.login{
  margin: 0;
  min-height: 100vh;
  background: #fff8fc;
  color: var(--texto);
}
.acceso{
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* ---------- 2. PANEL DE MARCA ---------- */
.marca{
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 90px 48px 48px;
  background: #e42eb4;
  color: #fff;
}
.marca-contenido{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.marca-logo{
  display: block;
  width: 440px;
  max-width: 88%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 0 rgba(120,10,90,0.25));
}
.marca-lema{
  margin: 14px 0 0;
  font-family: Bahnschrift, 'Agency FB', 'Arial Narrow', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 9px;
  text-transform: uppercase;
}
/* Ola de crema que separa los paneles (vertical en escritorio,
   horizontal al pie de la franja rosa en celular). */
.marca-ola-h{
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 34px;
}
.marca-ola{
  position: absolute;
  top: 0;
  right: -3px;   /* se monta 3px sobre el panel crema: sin línea de antialias */
  width: 73px;
  height: 100%;
}

/* ---------- 3. PANEL DE ACCESO ---------- */
.panel-acceso{
  position: relative;
  z-index: 1;
  margin-left: -2px;        /* tapa el borde fraccionario del panel rosa */
  background: #fff8fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 32px;
}
.acceso-caja{
  width: 100%;
  max-width: 380px;
}
.acceso-logo-movil{ display: none; }
.acceso-saludo{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pri-600);
}
.acceso-titulo{
  margin: 0;
  font-family: 'Segoe UI Black', 'Arial Black', sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  color: #e42eb4;
  margin-bottom: 30px;
}

/* ---------- 4. CAMPOS ---------- */
.campo-etiqueta{
  display: block;
  margin: 0 0 8px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2e1a12;
}
.campo{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0 8px 0 18px;
  height: 54px;
  background: #fff;
  border: 2px solid #f6d7ec;
  border-radius: var(--radio-pill);
  box-shadow: 0 4px 0 #f6d7ec;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.campo:focus-within{
  border-color: #e42eb4;
  box-shadow: 0 4px 0 #e42eb4;
  transform: translateY(-1px);
}
.campo input{
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--texto);
  font-family: inherit;
  font-size: 16px;
}
.campo input::placeholder{ color: rgba(46,26,18,0.32); }
.campo input:-webkit-autofill,
.campo input:-webkit-autofill:hover,
.campo input:-webkit-autofill:focus{
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: var(--texto);
  caret-color: #e42eb4;
}
.campo-icono{
  width: 20px;
  height: 20px;
  flex: none;
  color: #e42eb4;
}
.campo-ojo{
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: none;
  color: rgba(46,26,18,0.4);
  cursor: pointer;
}
.campo-ojo svg{ width: 20px; height: 20px; }
.campo-ojo:hover{ background: #fdebf8; color: #e42eb4; }
.campo-ojo--activo{ color: #e42eb4; }

.login-alerta{
  min-height: 18px;
  margin: -6px 0 12px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}

/* ---------- 5. BOTÓN "ENTRAR" ---------- */
.btn-entrar{
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radio-pill);
  background: #e42eb4;
  color: #fff;
  font-family: 'Segoe UI Black', 'Arial Black', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 5px 0 #a8137f;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
}
.btn-entrar svg{ width: 20px; height: 20px; transition: transform .15s ease; }
.btn-entrar:hover{ background: #ee3fc0; }
.btn-entrar:hover svg{ transform: translateX(4px); }
.btn-entrar:active{ transform: translateY(4px); box-shadow: 0 1px 0 #a8137f; }
.btn-entrar:focus-visible{ outline: 3px solid #00c1c1; outline-offset: 3px; }

/* ---------- 6. RESPONSIVE ---------- */
@media (max-width: 900px){
  .acceso{ grid-template-columns: 1fr; }
  .marca{ padding: 26px 20px 46px; }
  .marca-logo{ width: 250px; }
  .marca-lema{ font-size: 14px; letter-spacing: 6px; margin-top: 8px; }
  .marca-ola{ display: none; }
  .marca-ola-h{ display: block; }
  .panel-acceso{ margin-left: 0; justify-content: flex-start; padding: 18px 20px 30px; }
  .acceso-titulo{ font-size: 26px; }
}
