:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --ring: 0 22px 50px rgba(15,23,42,.18);
  --primary: #00c2a8;
  --primary-600: #00a892;
  --primary-soft: #e0fbf6;
  --accent: #ff6b00;
  --danger: #ef4444;
  /* 👇 Altura base del contenedor en pantallas grandes */
  --shell-min-h: 74vh;
  --shell-max-h: 720px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Nunito;
  background: radial-gradient(circle at top left, rgb(255 107 0 / 12%) 0, rgb(0 194 168 / 12%) 100%);
  color: var(--ink);
  /* Centro el login y dejo respiración en los bordes */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/** Medidas **/

.mt-5 {
  margin-top: 5px !important;
}
.mt-10 {
  margin-top: 10px !important;
}
.mt-15 {
  margin-top: 15px !important;
}
.mt-20 {
  margin-top: 20px !important;
}
.mt-25 {
  margin-top: 25px !important;
}
.mt-27 {
  margin-top: 27px !important;
}
.mt-30 {
  margin-top: 30px !important;
}
.mt-35 {
  margin-top: 35px !important;
}
.mt-40 {
  margin-top: 40px !important;
}
.mt-45 {
  margin-top: 45px !important;
}
.mt-50 {
  margin-top: 50px !important;
}
.mt-55 {
  margin-top: 55px !important;
}
.mt-60 {
  margin-top: 60px !important;
}
.mt-65 {
  margin-top: 65px !important;
}
.mt-68 {
  margin-top: 68px !important;
}
.mt-70 {
  margin-top: 70px !important;
}
.mt-75 {
  margin-top: 75px !important;
}
.mt-80 {
  margin-top: 80px !important;
}
.mt-85 {
  margin-top: 85px !important;
}
.mt-90 {
  margin-top: 90px !important;
}
.mt-95 {
  margin-top: 95px !important;
}
.mt-100 {
  margin-top: 100px !important;
}
.mt-105 {
  margin-top: 105px !important;
}
.mt-110 {
  margin-top: 110px !important;
}
.mt-115 {
  margin-top: 115px !important;
}
.mt-120 {
  margin-top: 120px !important;
}
.mt-125 {
  margin-top: 125px !important;
}
.mt-130 {
  margin-top: 130px !important;
}
.mt-135 {
  margin-top: 135px !important;
}
.mt-140 {
  margin-top: 140px !important;
}
.mt-145 {
  margin-top: 145px !important;
}
.mt-150 {
  margin-top: 150px !important;
}
.mt-155 {
  margin-top: 155px !important;
}
.mt-160 {
  margin-top: 160px !important;
}
.mt-165 {
  margin-top: 165px !important;
}
.mt-170 {
  margin-top: 170px !important;
}
.mt-175 {
  margin-top: 175px !important;
}
.mt-180 {
  margin-top: 180px !important;
}
.mt-185 {
  margin-top: 185px !important;
}
.mt-190 {
  margin-top: 190px !important;
}
.mt-195 {
  margin-top: 195px !important;
}
.mt-200 {
  margin-top: 200px !important;
}
.mb-5 {
  margin-bottom: 5px !important;
}
.mb-10 {
  margin-bottom: 10px !important;
}
.mb-15 {
  margin-bottom: 15px !important;
}
.mb-20 {
  margin-bottom: 20px !important;
}
.mb-24 {
  margin-bottom: 25px !important;
}
.mb-25 {
  margin-bottom: 25px !important;
}
.mb-30 {
  margin-bottom: 30px !important;
}
.mb-35 {
  margin-bottom: 35px !important;
}
.mb-40 {
  margin-bottom: 40px !important;
}
.mb-45 {
  margin-bottom: 45px !important;
}
.mb-50 {
  margin-bottom: 50px !important;
}
.mb-55 {
  margin-bottom: 55px !important;
}
.mb-60 {
  margin-bottom: 60px !important;
}
.mb-65 {
  margin-bottom: 65px !important;
}
.mb-70 {
  margin-bottom: 70px !important;
}
.mb-75 {
  margin-bottom: 75px !important;
}
.mb-80 {
  margin-bottom: 80px !important;
}
.mb-85 {
  margin-bottom: 85px !important;
}
.mb-90 {
  margin-bottom: 90px !important;
}
.mb-95 {
  margin-bottom: 95px !important;
}
.mb-100 {
  margin-bottom: 100px !important;
}
.mb-105 {
  margin-bottom: 105px !important;
}
.mb-110 {
  margin-bottom: 110px !important;
}
.mb-115 {
  margin-bottom: 115px !important;
}
.mb-120 {
  margin-bottom: 120px !important;
}
.mb-125 {
  margin-bottom: 125px !important;
}
.mb-130 {
  margin-bottom: 130px !important;
}
.mb-135 {
  margin-bottom: 135px !important;
}
.mb-140 {
  margin-bottom: 140px !important;
}
.mb-145 {
  margin-bottom: 145px !important;
}
.mb-150 {
  margin-bottom: 150px !important;
}
.mb-155 {
  margin-bottom: 155px !important;
}
.mb-160 {
  margin-bottom: 160px !important;
}
.mb-165 {
  margin-bottom: 165px !important;
}
.mb-170 {
  margin-bottom: 170px !important;
}
.mb-175 {
  margin-bottom: 175px !important;
}
.mb-180 {
  margin-bottom: 180px !important;
}
.mb-185 {
  margin-bottom: 185px !important;
}
.mb-190 {
  margin-bottom: 190px !important;
}
.mb-195 {
  margin-bottom: 195px !important;
}
.mb-200 {
  margin-bottom: 200px !important;
}
.ml-5 {
  margin-left: 5px !important;
}
.ml-10 {
  margin-left: 10px !important;
}
.ml-15 {
  margin-left: 15px !important;
}
.ml-20 {
  margin-left: 20px !important;
}
.ml-25 {
  margin-left: 25px !important;
}
.ml-30 {
  margin-left: 30px !important;
}
.ml-35 {
  margin-left: 35px !important;
}
.ml-40 {
  margin-left: 40px !important;
}
.ml-45 {
  margin-left: 45px !important;
}
.ml-50 {
  margin-left: 50px !important;
}
.ml-55 {
  margin-left: 55px !important;
}
.ml-60 {
  margin-left: 60px !important;
}
.ml-65 {
  margin-left: 65px !important;
}
.ml-70 {
  margin-left: 70px !important;
}
.ml-75 {
  margin-left: 75px !important;
}
.ml-80 {
  margin-left: 80px !important;
}
.ml-85 {
  margin-left: 85px !important;
}
.ml-90 {
  margin-left: 90px !important;
}
.ml-95 {
  margin-left: 95px !important;
}
.ml-100 {
  margin-left: 100px !important;
}
.ml-105 {
  margin-left: 105px !important;
}
.ml-110 {
  margin-left: 110px !important;
}
.ml-115 {
  margin-left: 115px !important;
}
.ml-120 {
  margin-left: 120px !important;
}
.ml-125 {
  margin-left: 125px !important;
}
.ml-130 {
  margin-left: 130px !important;
}
.ml-135 {
  margin-left: 135px !important;
}
.ml-140 {
  margin-left: 140px !important;
}
.ml-145 {
  margin-left: 145px !important;
}
.ml-150 {
  margin-left: 150px !important;
}
.ml-155 {
  margin-left: 155px !important;
}
.ml-160 {
  margin-left: 160px !important;
}
.ml-165 {
  margin-left: 165px !important;
}
.ml-170 {
  margin-left: 170px !important;
}
.ml-175 {
  margin-left: 175px !important;
}
.ml-180 {
  margin-left: 180px !important;
}
.ml-185 {
  margin-left: 185px !important;
}
.ml-190 {
  margin-left: 190px !important;
}
.ml-195 {
  margin-left: 195px !important;
}
.ml-200 {
  margin-left: 200px !important;
}
.mr-2 {
  margin-right: 2px !important;
}
.mr-5 {
  margin-right: 5px !important;
}
.mr-10 {
  margin-right: 10px !important;
}
.mr-15 {
  margin-right: 15px !important;
}
.mr-20 {
  margin-right: 20px !important;
}
.mr-25 {
  margin-right: 25px !important;
}
.mr-30 {
  margin-right: 30px !important;
}
.mr-35 {
  margin-right: 35px !important;
}
.mr-40 {
  margin-right: 40px !important;
}
.mr-45 {
  margin-right: 45px !important;
}
.mr-50 {
  margin-right: 50px !important;
}
.mr-55 {
  margin-right: 55px !important;
}
.mr-60 {
  margin-right: 60px !important;
}
.mr-65 {
  margin-right: 65px !important;
}
.mr-70 {
  margin-right: 70px !important;
}
.mr-75 {
  margin-right: 75px !important;
}
.mr-80 {
  margin-right: 80px !important;
}
.mr-85 {
  margin-right: 85px !important;
}
.mr-90 {
  margin-right: 90px !important;
}
.mr-95 {
  margin-right: 95px !important;
}
.mr-100 {
  margin-right: 100px !important;
}
.mr-105 {
  margin-right: 105px !important;
}
.mr-110 {
  margin-right: 110px !important;
}
.mr-115 {
  margin-right: 115px !important;
}
.mr-120 {
  margin-right: 120px !important;
}
.mr-125 {
  margin-right: 125px !important;
}
.mr-130 {
  margin-right: 130px !important;
}
.mr-135 {
  margin-right: 135px !important;
}
.mr-140 {
  margin-right: 140px !important;
}
.mr-145 {
  margin-right: 145px !important;
}
.mr-150 {
  margin-right: 150px !important;
}
.mr-155 {
  margin-right: 155px !important;
}
.mr-160 {
  margin-right: 160px !important;
}
.mr-165 {
  margin-right: 165px !important;
}
.mr-170 {
  margin-right: 170px !important;
}
.mr-175 {
  margin-right: 175px !important;
}
.mr-180 {
  margin-right: 180px !important;
}
.mr-185 {
  margin-right: 185px !important;
}
.mr-190 {
  margin-right: 190px !important;
}
.mr-195 {
  margin-right: 195px !important;
}
.mr-200 {
  margin-right: 200px !important;
}
.pt-5 {
  padding-top: 5px !important;
}
.pt-10 {
  padding-top: 10px !important;
}
.pt-15 {
  padding-top: 15px !important;
}
.pt-20 {
  padding-top: 20px !important;
}
.pt-25 {
  padding-top: 25px !important;
}
.pt-26 {
  padding-top: 26px !important;
}
.pt-30 {
  padding-top: 30px !important;
}
.pt-35 {
  padding-top: 35px !important;
}
.pt-36 {
  padding-top: 36px !important;
}
.pt-40 {
  padding-top: 40px !important;
}
.pt-45 {
  padding-top: 45px !important;
}
.pt-50 {
  padding-top: 50px !important;
}
.pt-55 {
  padding-top: 55px !important;
}
.pt-60 {
  padding-top: 60px !important;
}
.pt-65 {
  padding-top: 65px !important;
}
.pt-70 {
  padding-top: 70px !important;
}
.pt-75 {
  padding-top: 75px !important;
}
.pt-80 {
  padding-top: 80px !important;
}
.pt-85 {
  padding-top: 85px !important;
}
.pt-90 {
  padding-top: 90px !important;
}
.pt-95 {
  padding-top: 95px !important;
}
.pt-100 {
  padding-top: 100px !important;
}
.pt-105 {
  padding-top: 105px !important;
}
.pt-110 {
  padding-top: 110px !important;
}
.pt-115 {
  padding-top: 115px !important;
}
.pt-120 {
  padding-top: 120px !important;
}
.pt-125 {
  padding-top: 125px !important;
}
.pt-130 {
  padding-top: 130px !important;
}
.pt-135 {
  padding-top: 135px !important;
}
.pt-140 {
  padding-top: 140px !important;
}
.pt-145 {
  padding-top: 145px !important;
}
.pt-150 {
  padding-top: 150px !important;
}
.pt-155 {
  padding-top: 155px !important;
}
.pt-160 {
  padding-top: 160px !important;
}
.pt-165 {
  padding-top: 165px !important;
}
.pt-170 {
  padding-top: 170px !important;
}
.pt-175 {
  padding-top: 175px !important;
}
.pt-180 {
  padding-top: 180px !important;
}
.pt-185 {
  padding-top: 185px !important;
}
.pt-190 {
  padding-top: 190px !important;
}
.pt-195 {
  padding-top: 195px !important;
}
.pt-200 {
  padding-top: 200px !important;
}
.pt-260 {
  padding-top: 260px !important;
}
.pb-5 {
  padding-bottom: 5px !important;
}
.pb-10 {
  padding-bottom: 10px !important;
}
.pb-15 {
  padding-bottom: 15px !important;
}
.pb-20 {
  padding-bottom: 20px !important;
}
.pb-25 {
  padding-bottom: 25px !important;
}
.pb-26 {
  padding-bottom: 26px !important;
}
.pb-30 {
  padding-bottom: 30px !important;
}
.pb-35 {
  padding-bottom: 35px !important;
}
.pb-36 {
  padding-bottom: 36px !important;
}
.pb-37 {
  padding-bottom: 37px !important;
}
.pb-40 {
  padding-bottom: 40px !important;
}
.pb-43 {
  padding-bottom: 43px !important;
}
.pb-45 {
  padding-bottom: 45px !important;
}
.pb-50 {
  padding-bottom: 50px !important;
}
.pb-55 {
  padding-bottom: 55px !important;
}
.pb-60 {
  padding-bottom: 60px !important;
}
.pb-65 {
  padding-bottom: 65px !important;
}
.pb-70 {
  padding-bottom: 70px !important;
}
.pb-75 {
  padding-bottom: 75px !important;
}
.pb-80 {
  padding-bottom: 80px !important;
}
.pb-85 {
  padding-bottom: 85px !important;
}
.pb-90 {
  padding-bottom: 90px !important;
}
.pb-95 {
  padding-bottom: 95px !important;
}
.pb-100 {
  padding-bottom: 100px !important;
}
.pb-105 {
  padding-bottom: 105px !important;
}
.pb-110 {
  padding-bottom: 110px !important;
}
.pb-115 {
  padding-bottom: 115px !important;
}
.pb-120 {
  padding-bottom: 120px !important;
}
.pb-125 {
  padding-bottom: 125px !important;
}
.pb-130 {
  padding-bottom: 130px !important;
}
.pb-135 {
  padding-bottom: 135px !important;
}
.pb-140 {
  padding-bottom: 140px !important;
}
.pb-145 {
  padding-bottom: 145px !important;
}
.pb-150 {
  padding-bottom: 150px !important;
}
.pb-155 {
  padding-bottom: 155px !important;
}
.pb-160 {
  padding-bottom: 160px !important;
}
.pb-165 {
  padding-bottom: 165px !important;
}
.pb-170 {
  padding-bottom: 170px !important;
}
.pb-175 {
  padding-bottom: 175px !important;
}
.pb-180 {
  padding-bottom: 180px !important;
}
.pb-185 {
  padding-bottom: 185px !important;
}
.pb-190 {
  padding-bottom: 190px !important;
}
.pb-195 {
  padding-bottom: 195px !important;
}
.pb-200 {
  padding-bottom: 200px !important;
}
.pl-5 {
  padding-left: 5px !important;
}
.pl-10 {
  padding-left: 10px !important;
}
.pl-15 {
  padding-left: 15px !important;
}
.pl-20 {
  padding-left: 20px !important;
}
.pl-25 {
  padding-left: 25px !important;
}
.pl-30 {
  padding-left: 30px !important;
}
.pl-35 {
  padding-left: 35px !important;
}
.pl-40 {
  padding-left: 40px !important;
}
.pl-45 {
  padding-left: 45px !important;
}
.pl-50 {
  padding-left: 50px !important;
}
.pl-55 {
  padding-left: 55px !important;
}
.pl-60 {
  padding-left: 60px !important;
}
.pl-65 {
  padding-left: 65px !important;
}
.pl-70 {
  padding-left: 70px !important;
}
.pl-75 {
  padding-left: 75px !important;
}
.pl-80 {
  padding-left: 80px !important;
}
.pl-85 {
  padding-left: 85px !important;
}
.pl-90 {
  padding-left: 90px !important;
}
.pl-95 {
  padding-left: 95px !important;
}
.pl-100 {
  padding-left: 100px !important;
}
.pl-105 {
  padding-left: 105px !important;
}
.pl-110 {
  padding-left: 110px !important;
}
.pl-115 {
  padding-left: 115px !important;
}
.pl-120 {
  padding-left: 120px !important;
}
.pl-125 {
  padding-left: 125px !important;
}
.pl-130 {
  padding-left: 130px !important;
}
.pl-135 {
  padding-left: 135px !important;
}
.pl-140 {
  padding-left: 140px !important;
}
.pl-145 {
  padding-left: 145px !important;
}
.pl-150 {
  padding-left: 150px !important;
}
.pl-155 {
  padding-left: 155px !important;
}
.pl-160 {
  padding-left: 160px !important;
}
.pl-165 {
  padding-left: 165px !important;
}
.pl-170 {
  padding-left: 170px !important;
}
.pl-175 {
  padding-left: 175px !important;
}
.pl-180 {
  padding-left: 180px !important;
}
.pl-185 {
  padding-left: 185px !important;
}
.pl-190 {
  padding-left: 190px !important;
}
.pl-195 {
  padding-left: 195px !important;
}
.pl-200 {
  padding-left: 200px !important;
}
.pl-540 {
  padding-left: 540px !important;
}
.pr-5 {
  padding-right: 5px !important;
}
.pr-10 {
  padding-right: 10px !important;
}
.pr-15 {
  padding-right: 15px !important;
}
.pr-20 {
  padding-right: 20px !important;
}
.pr-25 {
  padding-right: 25px !important;
}
.pr-30 {
  padding-right: 30px !important;
}
.pr-35 {
  padding-right: 35px !important;
}
.pr-40 {
  padding-right: 40px !important;
}
.pr-45 {
  padding-right: 45px !important;
}
.pr-50 {
  padding-right: 50px !important;
}
.pr-55 {
  padding-right: 55px !important;
}
.pr-60 {
  padding-right: 60px !important;
}
.pr-65 {
  padding-right: 65px !important;
}
.pr-70 {
  padding-right: 70px !important;
}
.pr-75 {
  padding-right: 75px !important;
}
.pr-80 {
  padding-right: 80px !important;
}
.pr-85 {
  padding-right: 85px !important;
}
.pr-90 {
  padding-right: 90px !important;
}
.pr-95 {
  padding-right: 95px !important;
}
.pr-100 {
  padding-right: 100px !important;
}
.pr-105 {
  padding-right: 105px !important;
}
.pr-110 {
  padding-right: 110px !important;
}
.pr-115 {
  padding-right: 115px !important;
}
.pr-120 {
  padding-right: 120px !important;
}
.pr-125 {
  padding-right: 125px !important;
}
.pr-130 {
  padding-right: 130px !important;
}
.pr-135 {
  padding-right: 135px !important;
}
.pr-140 {
  padding-right: 140px !important;
}
.pr-145 {
  padding-right: 145px !important;
}
.pr-150 {
  padding-right: 150px !important;
}
.pr-155 {
  padding-right: 155px !important;
}
.pr-160 {
  padding-right: 160px !important;
}
.pr-165 {
  padding-right: 165px !important;
}
.pr-170 {
  padding-right: 170px !important;
}
.pr-175 {
  padding-right: 175px !important;
}
.pr-180 {
  padding-right: 180px !important;
}
.pr-185 {
  padding-right: 185px !important;
}
.pr-190 {
  padding-right: 190px !important;
}
.pr-195 {
  padding-right: 195px !important;
}
.pr-200 {
  padding-right: 200px !important;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  width: 100%;
  max-width: 1120px;

  /* 👇 Altura controlable (se ajusta a contenido pero no se dispara) */
  min-height: var(--shell-min-h);
  max-height: 95vh;
  height: auto;

  margin: clamp(16px, 4vh, 32px) auto;
  border-radius: 28px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--ring);
  overflow: hidden;
  backdrop-filter: blur(18px);

  /* Si el contenido crece más de max-height, que se haga scroll interno */
  overflow-y: auto;
}

/* --------- LADO HERO --------- */

.login-hero {
  position: relative;
  padding: 28px 30px 30px;
  background-image: linear-gradient(90deg, rgb(6 16 20 / 10%) 0%, rgb(6 16 20 / 30%) 52%, rgb(6 16 20 / 20%) 100%), url(../../assets/back-login.jpg);
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* --- OVERLAY OSCURO CONTROLABLE --- */
.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30); /* <<< AJUSTA ESTA OPACIDAD */
  z-index: 0;
  pointer-events: none;
}

/* Asegura que el contenido quede encima del overlay */
.login-hero > * {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .95rem;
}

.hero-logo img { height: 52px; }

.hero-badge {
  padding: .25rem .8rem;
  border-radius: 999px;
  background: rgba(15,23,42,.18);
  font-size: .75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.hero-main {
  margin-top: 40px;
  /*max-width: 420px;*/
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 1.1rem;
  color: #fef2e2;
  max-width: 370px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.hero-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  gap: 8px;
  font-weight: 600;
  width: max-content;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  backdrop-filter: blur(6px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgb(35 35 37 / 20%);
  transition: all .35s cubic-bezier(.4,0,.2,1);
}

.hero-pill i {
  color: #0dd3b9;
  font-size: 15px;
  transition: all .35s ease;
}

.hero-pill:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: rgba(13,211,185,.4);
  background: rgba(13,211,185,0.08);
  box-shadow:
  0 10px 25px rgba(0,0,0,.25),
  0 0 0 1px rgba(13,211,185,.15),
  0 0 18px rgba(13,211,185,.15);
}

/* ICON HOVER */
.hero-pill:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(13,211,185,.6));
}

/* SHINE EFFECT */
.hero-pill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.12),
    transparent
    );
  transition: all .6s ease;
}

.hero-pill:hover::after {
  left: 120%;
}

.hero-illustration {
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 260px;
  max-width: 48%;
  pointer-events: none;
  opacity: .95;
}

.hero-footer {
  margin-top: auto;
  font-size: .75rem;
  opacity: .9;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 999px;
  background: #22c55e;
  animation: pulse 1.8s ease-out infinite;
  box-shadow: 0 0 0 5px rgba(34,197,94,.35);
}

/* Animación del pulso */
@keyframes pulse {
  0% {
    box-shadow: 
    0 0 0 4px rgba(34, 197, 94, .25),
    0 0 0 0 rgba(34, 197, 94, .25);
    transform: scale(1);
  }
  50% {
    box-shadow: 
    0 0 0 6px rgba(34, 197, 94, .18),
    0 0 0 12px rgba(34, 197, 94, .12);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 
    0 0 0 4px rgba(34, 197, 94, .25),
    0 0 0 0 rgba(34, 197, 94, 0);
    transform: scale(1);
  }
}

/* --------- LADO FORMULARIO --------- */

.login-main {
  overflow-y: auto;
  max-height: 95vh;
  padding: 30px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(246,248,251,1));
}

.login-card {
  max-width: 400px;
  width: 100%;
  margin-inline: auto;
}

.login-heading {
  margin-bottom: 14px;
}

.login-heading h1 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
}

.login-heading p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.badge-env {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .15rem .6rem;
  background: #fdefe1;
  color: #ef6a09;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.badge-env i { font-size: .9rem; }

.form-group { margin-bottom: 14px; }

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 4px;
  color: #111827;
}

.form-label span.muted {
  font-weight: 500;
  font-size: .8rem;
  color: var(--muted);
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  pointer-events: none;
}

.field-input {
  width: 100%;
  border-radius: 8px;
  border: 1.5px solid #d0d7e2;
  padding: 9px 12px 9px 36px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent);
}

.field-input::placeholder { color: #9ca3af; }

.field-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px rgba(239,68,68,.12);
}

.field-input.is-valid { border-color: #22c55e; }

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  border: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
  transition: background .16s ease, color .16s ease;
}

.toggle-password:hover {
  background: #f3f4f6;
  color: #4b5563;
}

.field-hint {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .25rem;
}

.field-hint.danger { color: var(--danger); }

.field-hint.danger i { font-size: .9rem; }

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 6px;
  margin-bottom: 14px;
}

.check-wrap {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: #111827;
}

/* Checkbox custom */
.check-wrap input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.6px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .08s ease;
  background: #fff;
}

.check-wrap input::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: scale(0) rotate(6deg);
  box-shadow: inset 12px 12px #fff;
  transition: transform .16s ease;
}

.check-wrap input:checked {
  background: var(--primary);
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(16,185,129,.25);
  transform: translateY(-1px);
}

.check-wrap input:checked::after {
  transform: scale(1) rotate(0deg);
  background: transparent;
  clip-path: polygon(14% 53%, 0 68%, 39% 100%, 100% 27%, 85% 11%, 38% 72%);
  box-shadow: inset 12px 12px #fff;
}

.link-inline {
  font-size: .84rem;
  color: var(--primary-600);
  font-weight: 600;
  text-decoration: none;
}

.link-inline:hover { text-decoration: underline; }

.btn-primary {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: .75rem 1rem;
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary), #08b192);
  color: #fff;
  box-shadow: 0 12px 30px rgba(34,197,158,.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transition: transform .15s ease, box-shadow .15s ease, filter .1s ease, background-position .25s ease;
  background-size: 140% 140%;
  background-position: 0% 50%;
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 18px 36px rgba(16,185,129,.55);
  background-position: 100% 50%;
  filter: brightness(1.02);
}

.btn-primary:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 8px 20px rgba(16,185,129,.50);
}

.btn-primary[disabled] {
  opacity: .75;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.btn-spinner {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.divider {
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.btn-ghost {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: .6rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .12s ease, border-color .16s ease;
}

.btn-ghost:hover {
  background: #f9fafb;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transform: translateY(-1px);
  border-color: #e5e7eb;
}

.btn-ghost i { font-size: 1rem; }

.login-footnote {
  margin-top: 18px;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}

.login-footnote a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
}

.login-footnote a:hover { text-decoration: underline; }

.error-banner {
  display: none;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: .55rem .75rem;
  font-size: .8rem;
  color: #dc3545;
  background: rgba(255, 99, 99, 0.08);
  border: 1.5px solid rgba(255, 99, 99, 0.35);
  align-items: flex-start;
  gap: .5rem;
}

.error-banner.show { display: flex; }

.error-banner i {
  margin-top: 2px;
  font-size: 1rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-success.show { display: flex; align-items: center; }

.caps-warning {
  display: none;
  margin-top: 10px;
  font-size: .78rem;
  color: #dc3545;
  align-items: center;
  gap: .3rem;
}
.caps-warning.show { display: inline-flex; }

/* ------------- RESPONSIVE ------------- */

/* Tablets landscape / desktops pequeños */
@media (max-width: 1199.98px) {
  .login-shell {
    max-width: 980px;
    border-radius: 24px;
    --shell-max-h: 680px;
  }
}

/* Tablets verticales */
@media (max-width: 991.98px) {
  body {
    padding: 16px;
    align-items: flex-start;
  }

  .login-shell {
    grid-template-columns: minmax(0, 1fr);
    /*max-width: 480px;*/
    margin: auto;
    max-height: none;      /* que crezca en vertical */
    height: auto;
  }

  .login-hero {
    padding: 22px 20px 140px;
    min-height: 320px;
  }

  .hero-main { max-width: 100%; }

  .hero-illustration {
    right: -40px;
    bottom: -40px;
    width: 240px;
    opacity: .9;
  }

  .login-main {
    padding: 24px 22px 26px;
  }
}

/* Móviles */
@media (max-width: 575.98px) {
  body {
    padding: 12px;
  }

  .login-shell {
    margin: auto;
    border-radius: 22px;
  }

  .login-hero {
    padding: 18px 16px 130px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-sub {
    font-size: .95rem;
  }

  .hero-pill {
    font-size: .74rem;
  }

  .login-main {
    padding: 20px 16px 22px;
  }

  .login-heading h1 {
    font-size: 1.35rem;
  }

  .login-heading p {
    font-size: .86rem;
  }
}

.svc-btn{
  background:#00C2A8;
  color:#fff;
  font-size:14px;
  text-transform:uppercase;
  border:0;
  border-radius:50px;
  padding:.8rem .9rem;
  font-weight:700;
  letter-spacing:.3px;
  cursor:pointer;
  transition: transform 0.25s cubic-bezier(.18,.89,.32,1.28), box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow:0 4px 12px rgba(0,194,168,.35);
}

.svc-btn:hover{
  background:#009885;
  transform:scale(1.02);
  box-shadow:0 6px 18px rgba(0,194,168,.4);
}

.btn-danger {
  background: #fff;
  color: #dc3545;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  border: 1.5px solid #dc3545 !important;
  padding: .8rem .9rem !important;
  transition:.2s;
}

.btn-danger:hover {
  color: #dc3545;
  background-color: rgb(220 53 69 / 12%);
}

:not(.btn-check)+.btn-danger:active {
  color: #dc3545;
  background-color: rgb(220 53 69 / 12%);
}

.btn-close {
  font-size: .85rem;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
  box-shadow: 0 2px 3px rgba(4, 4, 7, .2);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
  background-color: #f8fafc;
}

.btn-close:focus {
  box-shadow: none;
}

.modal-backdrop {
  opacity: 1 !important;
  background-color: rgba(15, 23, 42, .45);
}

.modal-content {
  border-radius: 18px;
}

.form-control {
  resize: none;
  border-radius: 8px;
  border: 1.5px solid #cfd6de;
}

.form-control:focus {
  border-color: #00c2a8;
  border: 1.5px solid #00c2a8;
  box-shadow: none;
}

.form-label {
  color: #111827;
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 4px;
  gap:.35rem;
}

.form-control.is-invalid:focus, .was-validated .form-control:invalid:focus {
  box-shadow: none;
}

.modal-backdrop {
  opacity: 1 !important;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

/* =============================== */
/* 🔔 TOAST PRINCIPAL (login/dashboard) */
/* =============================== */

.security-toast {
  position: fixed;
  /*bottom: 24px;*/
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  /* 🔥 RESPONSIVE */
  width: auto;
  max-width: 90vw;
  box-sizing: border-box;
  /* evitar desbordes */
  overflow-wrap: break-word;
  word-break: break-word;
  /* NUEVO: bottom controlado por variable, valor por defecto 24px */
  bottom: var(--toast-bottom, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

/* Contenedor interior */
.security-toast-inner {
  display: flex;
  font-size: 0.95rem;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .16);
  /* RESPONSIVE por si el texto crece */
  max-width: 100%;
}

.security-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.security-toast.success .security-toast-inner {
  background: #d7f2e4;   /* Verde pastel, como el screenshot */
  color: #0f5132;
}

.security-toast.danger .security-toast-inner {
  background: #f8d7da;   /* Rojo pastel para errores */
  color: #842029;
  width: max-content;
}

.security-toast .icon i {
  font-size: 1.1rem;
}

/* Ícono */
.security-toast .icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* Texto */
.security-toast .text {
  flex: 1;
  font-size: 0.9rem;
  color: #0f172a;
  /* permitir saltos de línea */
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

/* Botón de cerrar */
.security-toast .close-btn {
  font-size: .85rem;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
  box-shadow: 0 2px 3px rgba(4, 4, 7, .2);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.security-toast .close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
  background-color: #f8fafc;
}

/* Barra de progreso */
.security-toast-progress {
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.security-toast.success .security-toast-progress {
  background: rgba(15, 81, 50, 0.55);
}

.security-toast.danger .security-toast-progress {
  background: rgba(132, 32, 41, 0.55);
}

/* =============================== */
/* 📱 RESPONSIVE - MÓVILES */
/* =============================== */
@media (max-width: 480px) {
  .security-toast {
    bottom: 16px;
  }

  .security-toast-inner {
    border-radius: 20px; /* redondeado menor para móviles */
    padding: 12px 14px;
  }

  .security-toast .text {
    font-size: 0.85rem;
  }

  .security-toast .icon {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .svc-btn {
    width: 100%;
  }

  .btn-danger {
    width: 100%;
  }
}