:root {
  --primario: #de0007;
  --primario-oscuro: #b80005;
}

/* ============================= */
/* RESET GENERAL */
/* ============================= */

html,
body {
  height: 100vh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  font-family: Poppins;
  background: #f3f4f6;
}

/* ============================= */
/* OCULTAR HEADER Y ELEMENTOS GLOBALES */
/* ============================= */

div[ng-controller="CabeceraCtrl"],
.header2,
.p-b-125,
.contmenubus,
footer,
.copyseccion,
#myBtn,
.carritoshop,
.menudesinsreg {
  display: none !important;
}

/* ============================= */
/* ESTRUCTURA PRINCIPAL */
/* ============================= */

.login {
  min-height: 100vh;
}

@media(min-width:768px) {
  .login {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================= */
/* PANEL IZQUIERDO */
/* ============================= */

.login__contenedor__uno {
  display: none;
}

@media(min-width:768px) {
  .login__contenedor__uno {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primario);
    color: #fff;
    padding: 4rem;
  }

  .contenedor__uno--texto {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
  }
}

/* ============================= */
/* PANEL DERECHO */
/* ============================= */

.login__contenedor__dos {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow-y: auto;
}

/* ============================= */
/* CARD (LOGIN + REGISTRO) */
/* ============================= */

.form__contenedor,
.form__login {
  background: #fff;
  width: 100%;
  max-width: 520px;
  padding: 3.5rem;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* ============================= */
/* BOTÓN CERRAR */
/* ============================= */

.closeinsregform {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2.2rem;
  color: #999;
  cursor: pointer;
}

.closeinsregform:hover {
  color: var(--primario);
}

/* ============================= */
/* LOGO Y TITULOS */
/* ============================= */

.contenedor__dos--logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contenedor__dos--logo img {
  max-width: 180px;
}

.contenedor__dos--titulo {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

/* ============================= */
/* INPUTS GENERALES */
/* ============================= */

.contenedor__dos--registro input,
.main__login input {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 0 14px;
  font-size: 1.4rem;
  transition: .3s ease;
  background: #f9fafb;
}

.contenedor__dos--registro input:focus,
.main__login input:focus {
  border-color: var(--primario);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(222, 0, 7, 0.15);
}

/* Espaciado login */
.main__login {
  margin-bottom: 1.4rem;
}

/* Grid registro */
.contenedor__dos--registro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

/* ============================= */
/* PASSWORD */
/* ============================= */

.password-wrapper,
#divcpass {
  position: relative;
}

.toggle-eye,
.password__ver {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: #777;
}

.toggle-eye:hover,
.password__ver:hover {
  color: var(--primario);
}

/* Espacio para iconos dentro del input */
.password-wrapper input {
  padding-right: 70px !important;
}

.validation-icon {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

/* ============================= */
/* FUERZA PASSWORD */
/* ============================= */

.strength {
  height: 6px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  transition: .4s;
}

/* ============================= */
/* MENSAJES */
/* ============================= */

.match-status {
  text-align: center;
  font-size: 13px;
  margin-top: 4px;
}

.login-error {
  background: #ffe5e5;
  color: var(--primario-oscuro);
  border: 1px solid #ffb3b3;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================= */
/* CHECKBOX REGISTRO */
/* ============================= */

.registro__aviso {
  margin-top: 2rem;
  font-size: 13px;
}

/* ============================= */
/* BOTONES */
/* ============================= */

.secondary__contenedor--boton span {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: var(--primario);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .3s ease;
  box-shadow: 0 10px 25px rgba(222, 0, 7, 0.3);
}

.secondary__contenedor--boton span:hover {
  transform: translateY(-2px);
  background: var(--primario-oscuro);
  box-shadow: 0 15px 30px rgba(222, 0, 7, 0.4);
}

.btn-disabled {
  background: #ccc !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: .7;
}

/* ============================= */
/* LINKS */
/* ============================= */

.yatienes__cuenta {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 14px;
}

.yatienes__cuenta a {
  color: var(--primario);
  font-weight: 600;
}

/* ============================= */
/* MENSAJES DE LOGIN */
/* ============================= */

.mensaje-login {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* Error de credenciales */
.error-general {
  background: #ffe5e5;
  color: #b80005;
  border: 1px solid #ffb3b3;
}

/* Advertencia / intentos restantes */
.advertencia {
  background: #fff4e5;
  color: #8a6d3b;
  border: 1px solid #ffddbf;
}

/* Cuenta bloqueada */
.bloqueo {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}