@font-face{
  font-family:"Tecnico";
  src:url("../assets/tecnico_regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Tecnico";
  src:url("../assets/tecnico_bold.ttf") format("truetype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Tecnico";
  src:url("../assets/tecnico_regularitalic.ttf") format("truetype");
  font-weight:400;
  font-style:italic;
  font-display:swap;
}
@font-face{
  font-family:"Tecnico";
  src:url("../assets/tecnico_bolditalic.ttf") format("truetype");
  font-weight:700;
  font-style:italic;
  font-display:swap;
}

:root{
  --blue:#0b5f82;
  --blue-deep:#083f5b;
  --blue-text:#123f5a;
  --cyan:#12aee5;
  --graphite:#26343d;
  --muted:#8799a6;
  --line:#c6d2da;
  --soft:#f5f8fa;
  --white:#fff;
  --error:#8f3434;
  --error-bg:#fff5f5;
  --ok:#2e664b;
  --ok-bg:#f2f8f4;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  width:100%;
  min-height:100%;
}

body{
  font-family:"Tecnico",Arial,sans-serif;
  color:var(--graphite);
  background:#f4f7f8;
  -webkit-font-smoothing:antialiased;
}

button,input{font:inherit}

.login-page{
  min-height:100vh;
}

.login-layout{
  width:100%;
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(420px,42%) minmax(0,58%);
  background:#fff;
}

/* FOTO / MARCA */
.brand-panel{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  color:#fff;
  background:
    linear-gradient(rgba(3,47,72,.34),rgba(3,47,72,.52)),
    url("../assets/archivadores_iso.jpg") center center / cover no-repeat;
}

.brand-panel::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(5,52,77,.12),rgba(5,52,77,.03));
}

.brand-content{
  position:relative;
  z-index:1;
  width:min(520px,78%);
  margin:auto auto auto 11%;
  padding:44px 0;
}

.brand-logo{
  display:block;
  width:min(420px,100%);
  height:auto;
  object-fit:contain;
  object-position:left center;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.08));
}

.accent-line{
  display:block;
  width:72px;
  height:4px;
  margin:34px 0 27px;
  background:var(--cyan);
}

.brand-subtitle{
  margin:0;
  color:#fff;
  font-size:clamp(28px,2.2vw,42px);
  line-height:1.12;
  font-weight:400;
  letter-spacing:.15px;
  text-shadow:0 1px 8px rgba(0,31,49,.24);
}

.brand-acronym{
  margin:17px 0 0;
  color:rgba(255,255,255,.78);
  font-size:22px;
  letter-spacing:1.5px;
}

.brand-footer{
  position:relative;
  z-index:1;
  padding:0 0 28px 11%;
  color:rgba(255,255,255,.68);
  font-size:16px;
}

/* ACCESO */
.access-panel{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  padding:58px clamp(42px,7vw,120px);
}

.access-wrap{
  width:min(640px,100%);
}

.access-heading{
  margin-bottom:44px;
}

.product-name{
  color:var(--blue);
  font-size:23px;
  margin-bottom:7px;
}

h1{
  margin:0;
  color:var(--blue-text);
  font-size:clamp(48px,4.2vw,68px);
  line-height:.98;
  font-weight:400;
  letter-spacing:-.6px;
}

.access-line{
  display:block;
  width:100%;
  height:1px;
  margin-top:29px;
  background:
    linear-gradient(90deg,var(--cyan) 0 98px,var(--line) 98px 100%);
}

.login-form{
  width:100%;
}

.field{
  margin-bottom:26px;
}

.field label{
  display:block;
  margin-bottom:9px;
  color:var(--blue-text);
  font-size:23px;
  font-weight:700;
}

.field input{
  width:100%;
  height:70px;
  border:1px solid #b8c8d2;
  border-radius:0;
  outline:none;
  padding:0 20px;
  background:#fff;
  color:var(--graphite);
  font-size:26px;
  transition:border-color .12s ease,box-shadow .12s ease,background .12s ease;
}

.field input::placeholder{
  color:#9caab3;
  opacity:1;
}

.field input:focus{
  border-color:var(--blue);
  background:#fbfdfe;
  box-shadow:inset 4px 0 0 var(--cyan);
}

.password-wrap{
  position:relative;
}

.password-wrap input{
  padding-right:105px;
}

.show-password{
  position:absolute;
  top:1px;
  right:1px;
  width:94px;
  height:68px;
  border:0;
  border-left:1px solid #d4dde3;
  background:#f8fafb;
  color:var(--blue);
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}

.show-password:hover{
  background:#f0f5f7;
}

.login-button{
  width:100%;
  height:66px;
  margin-top:7px;
  border:0;
  border-radius:0;
  background:var(--blue);
  color:#fff;
  font-size:25px;
  font-weight:700;
  letter-spacing:.35px;
  cursor:pointer;
  transition:background .12s ease;
}

.login-button:hover{background:#0a5271}
.login-button:disabled{opacity:.62;cursor:wait}

.restricted{
  margin:22px 0 0;
  text-align:center;
  color:#8799a6;
  font-size:17px;
}

.mensaje-login{
  display:none;
  margin:-6px 0 20px;
  padding:11px 14px;
  border-left:4px solid currentColor;
  font-size:18px;
}
.mensaje-login.visible{display:block}
.mensaje-login.error{color:var(--error);background:var(--error-bg)}
.mensaje-login.ok{color:var(--ok);background:var(--ok-bg)}

.mobile-footer{
  display:none;
}

/* MÓVIL / TABLET VERTICAL */
@media (max-width:820px){
  .login-layout{
    display:block;
    min-height:100vh;
  }

  .brand-panel{
    min-height:0;
    height:42vh;
    min-height:300px;
    max-height:430px;
    background-position:center 42%;
  }

  .brand-content{
    width:auto;
    margin:0;
    padding:38px 30px 30px;
    align-self:stretch;
  }

  .brand-logo{
    width:min(300px,74vw);
  }

  .accent-line{
    width:54px;
    height:3px;
    margin:24px 0 18px;
  }

  .brand-subtitle{
    font-size:clamp(24px,6vw,32px);
    line-height:1.1;
  }

  .brand-acronym{
    display:none;
  }

  .brand-footer{
    display:none;
  }

  .access-panel{
    min-height:58vh;
    display:block;
    padding:34px 26px 24px;
  }

  .access-wrap{
    width:100%;
    max-width:620px;
    margin:0 auto;
  }

  .access-heading{
    margin-bottom:30px;
  }

  .product-name{
    font-size:19px;
  }

  h1{
    font-size:44px;
  }

  .access-line{
    margin-top:20px;
    background:linear-gradient(90deg,var(--cyan) 0 68px,var(--line) 68px 100%);
  }

  .field{
    margin-bottom:20px;
  }

  .field label{
    font-size:20px;
  }

  .field input{
    height:60px;
    font-size:22px;
    padding:0 15px;
  }

  .password-wrap input{
    padding-right:90px;
  }

  .show-password{
    width:82px;
    height:58px;
    font-size:16px;
  }

  .login-button{
    height:58px;
    font-size:22px;
  }

  .restricted{
    margin-top:16px;
    font-size:15px;
  }

  .mobile-footer{
    display:block;
    margin-top:30px;
    text-align:center;
    color:#8a99a3;
    font-size:14px;
  }
}

/* MÓVIL PEQUEÑO */
@media (max-width:480px){
  .brand-panel{
    height:36vh;
    min-height:260px;
  }

  .brand-content{
    padding:27px 22px 22px;
  }

  .brand-logo{
    width:min(255px,72vw);
  }

  .accent-line{
    margin:18px 0 14px;
  }

  .brand-subtitle{
    font-size:23px;
  }

  .access-panel{
    padding:28px 20px 22px;
  }

  .product-name{
    font-size:17px;
  }

  h1{
    font-size:39px;
  }

  .field input{
    font-size:20px;
  }
}

/* Compatibilidad visual básica con las pantallas provisionales posteriores al login */
.acceso-shell{
  width:min(1180px,calc(100% - 44px));
  margin:0 auto;
  padding:34px 0 28px;
}
.tarjeta-login{
  width:min(760px,100%);
  margin:40px auto 0;
  padding:38px;
  background:#fff;
  border:1px solid #d4dfe4;
}
.linea-cian{
  display:block;
  width:82px;
  height:4px;
  margin-bottom:22px;
  background:var(--cyan);
}
.pie-pagina{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 20px;
  color:#6c808b;
  font-size:16px;
  text-align:center;
}
.pie-pagina .separador{
  color:var(--cyan);
  font-weight:700;
}

/* Selector de empresas de la puerta de entrada */
.empresa-select{position:relative;width:100%}
.empresa-trigger{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;height:70px;padding:0 20px;border:1px solid #b8c8d2;
  border-radius:0;background:#fff;color:var(--graphite);
  font:inherit;font-size:26px;text-align:left;cursor:pointer;
}
.empresa-trigger:focus-visible,.empresa-trigger[aria-expanded="true"]{
  outline:none;border-color:var(--blue);background:#fbfdfe;
  box-shadow:inset 4px 0 0 var(--cyan);
}
.empresa-actual,.empresa-opcion{display:flex;align-items:center;gap:10px;min-width:0}
.empresa-actual{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.empresa-actual span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.empresa-placeholder{color:#9caab3}
.empresa-mini-logo{width:28px;height:28px;flex:0 0 28px;object-fit:contain}
.empresa-flecha{flex:0 0 auto;color:var(--blue);font-size:22px}
.empresa-opciones{
  position:absolute;z-index:10;top:calc(100% - 1px);left:0;right:0;
  max-height:min(320px,50vh);overflow-y:auto;overscroll-behavior:contain;
  background:#fff;border:1px solid #b8c8d2;
  box-shadow:0 8px 18px rgba(0,0,0,.13);
}
.empresa-opciones[hidden]{display:none}
.empresa-opcion{
  width:100%;min-height:49px;padding:8px 14px;border:0;background:#fff;
  color:var(--graphite);font:inherit;font-size:19px;text-align:left;cursor:pointer;
}
.empresa-opcion:hover,.empresa-opcion:focus-visible{
  outline:none;background:#eef6fa;box-shadow:inset 3px 0 0 var(--cyan);
}
.empresa-opcion[aria-selected="true"]{background:#f0f6f9}
@media(max-width:820px){
  .empresa-trigger{height:60px;padding:0 15px;font-size:22px}
  .empresa-opcion{font-size:18px}
  .empresa-mini-logo{width:24px;height:24px;flex-basis:24px}
}

/* Separación entre el acceso de LifeLearning y las empresas cliente. */
.empresa-separador{height:1px;margin:6px 12px;background:var(--line);pointer-events:none}

