/* =========================================================
   EZ LOGIN CSS
   PREMIUM LIGHT FIXED
========================================================= */

/* GLOBAL */
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  user-select: none;
  box-sizing: border-box;
  font-family: Manrope, Manrope_light, Arial, sans-serif;
}

*:focus {
  outline: none;
}

html,
body {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  background: linear-gradient(180deg, #071B4A 0%, #08142f 100%);
  color: #ffffff;
}

a {
  color: white;
}

.center { text-align: center; }
.left { text-align: left; }
.justify { text-align: justify; }

.colorOr,
.colorOr1 {
  color: #FF513A;
  text-shadow: 1px 1px 8px #FF513A;
}

.colorOr2 {
  color: #000000;
}

section[id] {
  scroll-margin-top: 50px;
}

/* LOAD */
#backLoad {
  display: block;
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 5000;
}

#tileLoad {
  position: absolute;
  width: 100%;
  color: #ffffff;
  top: 58%;
  font-size: 3vh;
  text-align: center;
}

#contIcL {
  position: relative;
  width: 100px;
  margin: auto;
  top: 44%;
}

#icLoad {
  border: 10px solid #ed1c24;
  border-top-color: #D9D9D9;
  height: 80px;
  width: 80px;
  border-radius: 100%;
  position: absolute;
  inset: 0;
  margin: auto;
  animation: girar 1.5s linear infinite;
  z-index: 21;
}

@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* NAVBAR */
#backbavbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 58px;
  background: #0b1020;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 50;
  text-align: center;
}

#bavbar {
  position: relative;
  width: 100%;
  height: 100%;
}

.botmenu {
  display: inline-block;
  margin-left: 10%;
  cursor: pointer;
}

.botmenu:hover,
a:hover {
  color: #FF513A;
  text-shadow: 1px 1px 8px #FF513A;
}

/* LOGO WRAP */
#backbackICON4 {
  position: relative;
  width: 100%;
  max-width: 430px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 6px;
  cursor: default;
}

#ezabsC {
  position: static;

  width: auto;
  max-width: 170px;
  height: auto;
  object-fit: contain;
}

/* HIDE LEGACY ELEMENTS */
#iconez1,
#iconez2,
#iconezBOD1,
#iconezBOD2,
#backIndex0,
#backbackICON1,
#backbackICON2,
#ezabs,
#ezabs0,
#slogan,
#sombraUno,
#backIndex {
  display: none;
}

/* BACKGROUND */
#bobybody {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(180deg, #08152f 0%, #071B4A 100%);
}

/* MAIN WRAP */
#backall {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 58px);
  padding: 28px 14px 32px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 2;
  overflow: visible !important;
}

/* LOGIN CARD */
#formloguin {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 22px;
  background: #081c57;
  border: 1px solid rgba(103, 132, 235, 0.22);
  box-shadow: 0 14px 34px rgba(5, 10, 24, 0.22);
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 9, 40, 0.95) 0px,
      rgba(0, 9, 40, 0.95) 62px,
      rgba(8, 28, 87, 1) 62px,
      rgba(8, 28, 87, 1) 100%
    );
}

/* TITLE */
#singin {
  width: 100%;
  margin: 52px 0 22px;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 300;
  text-align: center;
}

/* FIELD WRAPPERS */
#backuser,
#backpass {
  position: relative;
  width: 100%;
  margin: 0 0 16px;
}

#userOk,
#candado {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.75;
  z-index: 2;
  object-fit: contain;
}

/* INPUTS */
.usuario,
.pass {
  display: block;
  width: 100%;
  height: 52px;

  border: none;
  border-radius: 16px;
  background: #f1f3f8;
  color: #111827;
  text-align: center;
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.usuario::placeholder,
.pass::placeholder {
  color: #6B7280;
  font-weight: 600;
}

.usuario:focus,
.pass:focus {
  background-color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(72, 110, 255, 0.16),
    inset 0 1px 2px rgba(0,0,0,0.04);
}

/* BUTTON */
.LOGIN {
  display: block;
  width: 100%;
  height: 54px;
  margin: 8px 0 0;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #2E63FF 0%, #4D73FF 58%, #7D63FF 100%);
  color: #ffffff;
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(46, 99, 255, 0.20);
  transition: transform .18s ease, filter .18s ease;
}

.LOGIN:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.LOGIN:active {
  transform: translateY(0);
}

/* AUTOFILL */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  -webkit-text-fill-color: #111827;
}

.tuLogo {
  height: 100%;
  margin-left: 16px;
  margin-top: 7px;
}

/* TABLET */
@media (max-width: 1024px) {
  #backall {
    padding: 24px 16px 30px;
    gap: 16px;
  }

  #backbackICON4 {
    max-width: 430px;
    padding: 0 4px;
  }

  #ezabsC {
    max-width: 160px;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  #backbavbar {
    height: 56px;
  }

  #backall {
    min-height: calc(100vh - 56px);
    padding: 16px 10px 22px;
    justify-content: flex-start;
    gap: 14px;
  }

  #backbackICON4 {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0;
  }

  #ezabsC {
    max-width: 150px;
  }

  #formloguin {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px 14px;
    border-radius: 18px;
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 9, 40, 0.95) 0px,
        rgba(0, 9, 40, 0.95) 54px,
        rgba(8, 28, 87, 1) 54px,
        rgba(8, 28, 87, 1) 100%
      );
  }

  #singin {
    margin: 46px 0 18px;
    font-size: 22px;
  }

  #backuser,
  #backpass {
    margin-bottom: 14px;
  }

  .usuario,
  .pass,
  .LOGIN {
    height: 50px;
    border-radius: 14px;
    font-size: 16px;
  }
}

/* SMALL MOBILE */
@media (max-width: 520px) {
  #backall {
    padding: 14px 8px 18px;
    gap: 12px;
  }

  #backbackICON4 {
    justify-content: center;
  }

  #ezabsC {
    max-width: 142px;
  }

  #formloguin {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 14px 12px 12px;
    border-radius: 16px;
  }

  #singin {
    font-size: 21px;
  }



  #userOk,
  #candado {
    left: 12px;
    width: 18px;
    height: 18px;
  }
}

/* EXTRA SMALL */
@media (max-width: 380px) {
  #backall {
    padding: 12px 8px 16px;
  }

  #ezabsC {
    max-width: 132px;
  }

  #singin {
    font-size: 20px;
  }

  .usuario,
  .pass,
  .LOGIN {
    height: 48px;
    font-size: 15px;
  }
}



/* =========================================================
   LOGIN PORTAL PICKER
   AJUSTE DESKTOP + PATS/HOSPITAL
========================================================= */

/* CARD MÁS AMPLIA EN DESKTOP */
#formloguin {
  width: min(100%, 500px);
  padding: 22px 22px 20px;
  border-radius: 24px;
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 9, 40, 0.95) 0px,
      rgba(0, 9, 40, 0.95) 66px,
      rgba(8, 28, 87, 1) 66px,
      rgba(8, 28, 87, 1) 100%
    );
}

#singin {
  margin: 58px 0 20px;
}

/* PORTAL PICKER */
.portal-picker-wrap {
  width: 100%;
  margin: 0 0 18px;
}

.portal-picker-label {
  display: block;
  text-align: center;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  letter-spacing: .02em;
  margin-bottom: 12px;
  font-weight: 500;
}

.portal-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.portal-option {
  position: relative;
  border: 1px solid rgba(113,143,255,.22);
  background: linear-gradient(135deg, rgba(14,25,69,.98) 0%, rgba(18,34,86,.96) 55%, rgba(43,47,112,.94) 100%);
  border-radius: 18px;
  padding: 10px 12px;

  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.portal-option:hover {
  transform: translateY(-1px);
  border-color: rgba(101, 192, 255, .46);
  box-shadow: 0 14px 28px rgba(14, 28, 76, .24);
}

.portal-option.is-selected {
  border-color: rgba(64, 214, 255, .75);
  box-shadow:
    0 0 0 1px rgba(64,214,255,.26) inset,
    0 16px 30px rgba(20, 42, 110, .30),
    0 0 18px rgba(42,214,255,.22);
}

.portal-option__glow {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38dfff;
  box-shadow: 0 0 12px rgba(56,223,255,.82), 0 0 22px rgba(56,223,255,.40);
  opacity: .22;
  transition: opacity .18s ease, transform .18s ease;
}

.portal-option.is-selected .portal-option__glow {
  opacity: 1;
  transform: scale(1.04);
}

.portal-option svg {
  width: 24px;
  height: 24px;
  display: block;
}

.portal-option__title {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

.portal-option__meta {
  color: rgba(210,225,255,.82);
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
}

/* MÁS AIRE ENTRE BLOQUES */
#backuser,
#backpass {
  margin: 0 0 18px;
}

.usuario,
.pass {
  height: 54px;
}

.LOGIN {
  height: 56px;
  margin-top: 10px;
}

/* TABLET */
@media (max-width: 1024px) {
  #formloguin {
    width: min(100%, 470px);
    padding: 20px 20px 18px;
  }

  .portal-option {
    min-height: 70px;
    padding: 9px 10px;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  #formloguin {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px 14px;
    border-radius: 18px;
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 9, 40, 0.95) 0px,
        rgba(0, 9, 40, 0.95) 56px,
        rgba(8, 28, 87, 1) 56px,
        rgba(8, 28, 87, 1) 100%
      );
  }

  #singin {
    margin: 48px 0 18px;
  }

  .portal-picker {
    gap: 10px;
  }

  .portal-option {
    min-height: 66px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .portal-option__title {
    font-size: 13px;
  }

  .portal-option__meta {
    font-size: 10px;
  }

  .usuario,
  .pass,
  .LOGIN {
    height: 50px;
  }
}

/* SMALL MOBILE */
@media (max-width: 520px) {
  .portal-picker {
    grid-template-columns: 1fr;
  }

  .portal-option {
    min-height: 60px;
  }

  .portal-option__meta {
    display: none;
  }
}

/* TEXTO BASE */
.portal-option__title {
  color: rgba(255,255,255,.92);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .01em;
  transition: color .18s ease, text-shadow .18s ease, transform .18s ease;
}

.portal-option__meta {
  color: rgba(210,225,255,.76);
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  transition: color .18s ease, opacity .18s ease;
}

/* ESTADO NORMAL */
.portal-option {
  opacity: .88;
}

.portal-option:hover {
  opacity: 1;
}

/* ESTADO ACTIVO */
.portal-option.is-selected {
  opacity: 1;
  border-color: rgba(64, 214, 255, .82);
  background: linear-gradient(
    135deg,
    rgba(10, 28, 82, .98) 0%,
    rgba(15, 42, 110, .97) 54%,
    rgba(40, 50, 122, .96) 100%
  );
  box-shadow:
    0 0 0 1px rgba(64,214,255,.30) inset,
    0 16px 30px rgba(20, 42, 110, .30),
    0 0 18px rgba(42,214,255,.24);
}

.portal-option.is-selected .portal-option__title {
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(56,223,255,.28),
    0 0 18px rgba(56,223,255,.18);
  transform: translateY(-1px);
}

.portal-option.is-selected .portal-option__meta {
  color: rgba(236,246,255,.92);
}

.portal-option.is-selected .portal-option__glow {
  opacity: 1;
  transform: scale(1.05);
}

/* OPCIÓN NO ACTIVA CUANDO HAY OTRA SELECCIONADA */
.portal-picker.has-selection .portal-option:not(.is-selected) {
  opacity: .72;
  border-color: rgba(113,143,255,.16);
  background: linear-gradient(
    135deg,
    rgba(14,25,69,.88) 0%,
    rgba(18,34,86,.86) 55%,
    rgba(43,47,112,.82) 100%
  );
}

.portal-picker.has-selection .portal-option:not(.is-selected) .portal-option__title {
  color: rgba(255,255,255,.82);
}

.portal-picker.has-selection .portal-option:not(.is-selected) .portal-option__meta {
  color: rgba(210,225,255,.62);
}

/* LOGIN SHELL MÁS AMPLIO EN DESKTOP */
#loginShell {
  width: min(100%, 560px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* EL FORM YA NO SE AUTOENCOGE */
#formloguin {
  width: 100%;
  max-width: 560px;
  padding: 24px 26px 22px;
  border-radius: 26px;
}

/* MÁS AIRE EN EL CONTENIDO */
#singin {
  margin: 60px 0 22px;
}

.portal-picker-wrap {
  margin-bottom: 20px;
}

#backuser,
#backpass {
  margin-bottom: 18px;
}

/* DESKTOP MÁS HOLGADO */
@media (min-width: 1100px) {
  #loginShell {
    width: 580px;
  }

  #formloguin {
    max-width: 580px;
    padding: 26px 28px 24px;
  }
}

/* =========================================================
   LOGIN - Ojito contraseña Unicode
   Alineado desktop y móvil
========================================================= */

#backpass {
    position: relative;
    overflow: visible;
}

#backpass .pass {
    box-sizing: border-box;
    padding-left: 64px !important;
    padding-right: 64px !important;
    text-align: center !important;
}

.toggle-password-btn {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);

    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;

    border: 0;
    border-radius: 12px;
    cursor: pointer;
    z-index: 80;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #263469, #34458d);
    box-shadow:
        0 7px 16px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);

    color: #ffffff;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;

    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.toggle-password-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d5dfc);
    box-shadow:
        0 10px 22px rgba(38, 110, 255, 0.28),
        inset 0 0 0 1px rgba(111, 231, 255, 0.28);
}

.toggle-password-btn.is-visible {
    background: linear-gradient(135deg, #0ea5e9, #6d5dfc);
}

.toggle-password-btn .eye-symbol {
    display: block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
    transform: translateY(-1px);
}

/* MÓVIL */
@media (max-width: 640px) {
    #backpass .pass {
        padding-left: 58px !important;
        padding-right: 68px !important;
        text-align: center !important;
    }

    .toggle-password-btn {
        right: 10px;
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        border-radius: 14px;
        font-size: 18px;
    }

    .toggle-password-btn .eye-symbol {
        width: 20px;
        height: 20px;
        line-height: 20px;
    }
}