/* Inicio de sesión de trabajadores CyP Chile — diseño 2026.
   Solo se carga en el login de trabajadores; no afecta el Portal Clientes. */
html:has(body.portal--trabajadores.portal--guest .cyp-entry) { zoom:1 !important; }\n.portal--trabajadores.portal--guest { margin:0; background:#091722; }
.portal--trabajadores.portal--guest .toast-region { z-index:100; }
.cyp-entry, .cyp-entry *, .cyp-entry *::before, .cyp-entry *::after { box-sizing:border-box; }
.cyp-entry {
  --cyp-green:#91e822;
  --cyp-green-dark:#2b870a;
  position:relative;
  isolation:isolate;
  width:100%;
  min-height:100vh;
  min-height:100dvh;
  padding:32px clamp(28px,5.1vw,100px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(410px,min(38vw,550px));
  align-items:center;
  gap:clamp(38px,6vw,120px);
  overflow:hidden;
  background:#0a1b29;
  color:#fff;
  font-family:Inter,"IBM Plex Sans","Segoe UI",Arial,sans-serif;
}
.cyp-entry__photo {
  position:absolute;inset:-16px;z-index:-3;pointer-events:none;
  background:url('../img/portal/trabajadores.webp') center 47%/cover no-repeat;
  filter:saturate(.88) contrast(1.12);
  transform:scale(1.04);
}
.cyp-entry__vignette {
  position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(ellipse 55% 72% at 2% 10%,rgba(226,165,93,.23),transparent 72%),
    linear-gradient(90deg,rgba(8,20,31,.32) 0%,rgba(8,21,32,.42) 45%,rgba(4,14,24,.65) 75%,rgba(3,15,23,.63) 100%),
    linear-gradient(0deg,rgba(2,14,25,.76) 0%,rgba(0,0,0,0) 42%,rgba(5,13,23,.22) 100%);
}
.cyp-entry__accent {position:absolute;z-index:-1;pointer-events:none;user-select:none;}
.cyp-entry__accent--top {
  width:260px;height:125%;right:-118px;top:-45%;
  background:linear-gradient(130deg,rgba(63,143,22,.55),rgba(19,76,12,.72));
  transform:rotate(34deg);
  border-left:2px solid rgba(153,255,45,.88);
  box-shadow:-22px 0 95px rgba(42,154,23,.15);
}
.cyp-entry__accent--bottom {
  width:160px;height:360px;right:-96px;bottom:-125px;transform:skewX(-34deg);
  background:linear-gradient(110deg,rgba(82,193,16,.53),rgba(48,123,19,.25));
  border-left:2px solid rgba(174,255,32,.72);
}
.cyp-entry__story {max-width:580px;align-self:center;padding-bottom:28px;z-index:1;}
.cyp-entry__overline {display:block;font-size:12px;letter-spacing:.28em;font-weight:500;color:#e5eaf0;margin-bottom:16px;}
.cyp-entry__story-line {display:block;width:62px;height:3px;margin-bottom:28px;background:var(--cyp-green);box-shadow:0 0 14px rgba(134,239,22,.55);}
.cyp-entry__story h1 {
  font-size:clamp(38px,3.65vw,72px);
  line-height:1.065;letter-spacing:-.052em;
  color:#fff;font-weight:790;margin:0;
  text-shadow:0 3px 20px rgba(0,0,0,.36);
}
.cyp-entry__story h1 span {color:var(--cyp-green);}
.cyp-entry__story p {
  font-size:clamp(15px,1.11vw,19px);
  line-height:1.55;
  color:rgba(248,251,255,.94);font-weight:400;
  max-width:410px;
  padding-left:17px;border-left:3px solid var(--cyp-green);
  margin:29px 0 0;
  text-shadow:0 2px 14px rgba(0,0,0,.5);
}
.cyp-entry__card-region{display:flex;justify-content:center;position:relative;z-index:2;}
.cyp-entry__card {
  position:relative;
  width:100%;
  max-width:550px;
  border-radius:34px;
  padding:clamp(27px,3.1vw,42px) clamp(29px,3.4vw,49px) 27px;
  background:linear-gradient(147deg,rgba(24,43,49,.61) 0%,rgba(13,28,36,.57) 48%,rgba(3,14,21,.58) 100%);
  border:1px solid rgba(220,242,233,.62);
  -webkit-backdrop-filter:blur(23px) saturate(1.18);
  backdrop-filter:blur(23px) saturate(1.18);
  box-shadow:
    0 22px 67px rgba(1,8,14,.42),
    inset 0 1px 0 rgba(255,255,255,.21),
    inset 0 -1px 0 rgba(158,249,103,.14);
  overflow:hidden;
  animation:cyp-card-enter .58s cubic-bezier(.2,.7,.2,1) both;
}
.cyp-entry__card:before {
  content:"";
  position:absolute;pointer-events:none;
  inset:-1px;border-radius:inherit;padding:2px;
  background:conic-gradient(from 210deg,transparent 0deg,transparent 235deg,rgba(198,255,118,.15) 270deg,rgba(193,255,115,.92) 305deg,rgba(236,255,213,.65) 315deg,transparent 342deg);
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask-composite:exclude;
  transform:rotate(-32deg);
  transform-origin:50% 50%;
  opacity:.13;
  animation:cyp-border-flare 2.4s ease-in-out .22s both;
}
.cyp-entry__card-glow {
  position:absolute;z-index:0;pointer-events:none;
  top:-95px;left:-96px;width:315px;height:218px;
  background:radial-gradient(ellipse at center,rgba(163,255,72,.46),rgba(117,233,45,.11) 42%,transparent 70%);
  filter:blur(23px);
  opacity:.42;
  animation:cyp-glow-flare 2.35s ease-out .15s both;
}
.cyp-entry__card-content{position:relative;z-index:1;}
.cyp-entry__card-head{text-align:center;}
.cyp-entry__logo{
  display:block;width:clamp(235px,19vw,320px);max-width:100%;height:auto;
  margin:0 auto -1px;object-fit:contain;
  filter:drop-shadow(0 5px 9px rgba(0,0,0,.31));
}
.cyp-entry__wordmark {
  display:block;
  margin:0 auto 12px;
  font-size:11px;letter-spacing:.44em;
  color:#e7edf0;font-weight:700;
  white-space:nowrap;
}
.cyp-entry__card-head p{margin:4px auto 20px;font-size:12px;color:rgba(242,246,248,.90);line-height:1.6;}
.cyp-entry__security-label{
  display:flex;justify-content:center;align-items:center;
  min-height:36px;margin:0 auto 19px;padding:6px 11px;
  gap:9px;border:1px solid rgba(125,218,36,.65);
  border-radius:100px;background:rgba(2,20,27,.40);
  box-shadow:0 0 15px rgba(112,206,31,.1);
  color:#f1f6ef;font-size:10px;white-space:nowrap;
}
.cyp-entry__security-label svg{width:18px;height:18px;color:#98f42e;flex:0 0 auto;}
.cyp-entry__security-label strong{font-weight:750;}
.cyp-entry__security-label span:last-child{color:rgba(245,250,251,.87);}
.cyp-entry__security-rule{width:1px;height:16px;background:rgba(220,232,229,.43);margin:0 2px;}
.cyp-entry__form{display:flex;flex-direction:column;gap:16px;}
.cyp-entry__field label{display:block;margin:0 0 8px;color:#f5f8fa;font-size:13px;font-weight:650;}
.cyp-entry__input-wrap{
  position:relative;height:48px;display:flex;align-items:center;gap:12px;
  border-radius:11px;
  border:1px solid rgba(230,242,240,.58);
  background:rgba(236,249,255,.055);
  transition:border-color .17s ease,background .17s ease,box-shadow .17s ease;
}
.cyp-entry__input-wrap:focus-within{
  border-color:rgba(151,242,75,.97);
  box-shadow:0 0 0 3px rgba(134,227,44,.16),0 0 17px rgba(134,227,44,.12);
  background:rgba(236,249,255,.10);
}
.cyp-entry__input-wrap>svg{width:19px;height:19px;margin-left:14px;flex:0 0 auto;color:#e8f1f4;}
.cyp-entry__input-wrap input{
  flex:1;width:100%;min-width:0;height:100%;
  background:none;border:0;outline:0;box-shadow:none;
  color:#fff;font:inherit;font-weight:500;font-size:14px;letter-spacing:.012em;
}
.cyp-entry__input-wrap input::placeholder{color:rgba(223,232,233,.52);opacity:1;}
.cyp-entry__peek{display:grid;place-items:center;background:transparent;color:#e6f3f2;border:0;cursor:pointer;border-radius:8px;margin-right:7px;width:35px;height:35px;flex:0 0 35px;}
.cyp-entry__peek:hover,.cyp-entry__peek:focus-visible{background:rgba(255,255,255,.14);outline:none;}
.cyp-entry__peek svg{width:19px;height:19px;}
.cyp-entry__peek.is-visible svg{color:#a2f05c;}
.cyp-entry__submit {
  min-height:54px;border:1px solid rgba(185,255,104,.84);
  border-radius:12px;
  margin-top:8px;padding:9px 20px;
  display:flex;align-items:center;justify-content:center;gap:13px;
  background:linear-gradient(180deg,#8ff221 0%,#53b800 48%,#2a8707 100%);
  box-shadow:0 9px 18px rgba(17,68,2,.31),inset 0 1px 0 rgba(255,255,255,.55);
  color:#fff;text-shadow:0 1px 2px rgba(17,72,2,.48);
  font:inherit;font-weight:800;font-size:19px;
  cursor:pointer;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
.cyp-entry__submit svg{width:23px;height:23px;}
.cyp-entry__submit:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.08);box-shadow:0 12px 27px rgba(42,113,12,.43);}
.cyp-entry__submit:active:not(:disabled){transform:translateY(1px);}
.cyp-entry__submit:disabled{opacity:.7;cursor:progress;}
.cyp-entry__foot{text-align:center;border-top:1px solid rgba(241,248,250,.23);margin-top:24px;padding-top:18px;}
.cyp-entry__foot p{font-size:12px;font-weight:500;color:#f5f7f8;margin:0 0 5px;}
.cyp-entry__foot span{font-size:10px;color:rgba(228,238,240,.66);}
.cyp-entry .flash,.cyp-entry .alert{margin:12px 0 17px;color:#fff;border-radius:9px;}
.cyp-entry input:-webkit-autofill{
  -webkit-text-fill-color:#fff!important;
  transition:background-color 99999s ease-in-out 0s;
}
@keyframes cyp-card-enter{from{opacity:0;transform:translateY(14px) scale(.988)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes cyp-border-flare{0%{opacity:0;transform:rotate(-38deg)}35%{opacity:.92}70%{opacity:.51}100%{opacity:.17;transform:rotate(195deg)}}
@keyframes cyp-glow-flare{0%{opacity:.0;transform:translate(-25px,-17px)}42%{opacity:.82;transform:translate(0,0)}100%{opacity:.38;transform:translate(6px,3px)}}
@media(max-width:1100px){
  .cyp-entry{grid-template-columns:minmax(0,1fr) minmax(390px,48%);gap:35px;padding:24px 3vw;}
  .cyp-entry__story h1{font-size:clamp(35px,4.3vw,52px);}
  .cyp-entry__card{padding:26px 32px 25px;}
}
@media(max-width:790px){
  .cyp-entry{grid-template-columns:1fr;justify-items:center;gap:0;padding:22px 16px 35px;}
  .cyp-entry__story{display:none;}
  .cyp-entry__card-region{width:100%;max-width:500px;margin:auto 0;}
  .cyp-entry__card{padding:28px clamp(19px,5vw,38px) 25px;border-radius:24px;}
  .cyp-entry__photo{background-position:62% center;}
  .cyp-entry__vignette{background:linear-gradient(90deg,rgba(7,19,29,.58),rgba(5,19,27,.56)),linear-gradient(0deg,rgba(3,13,21,.8),transparent 70%);}
  .cyp-entry__logo{width:min(70vw,280px);}
}
@media(max-width:420px){.cyp-entry__card{padding:22px 18px 24px}.cyp-entry__security-label{font-size:9px;gap:6px}.cyp-entry__card-head p{font-size:11px}.cyp-entry__form{gap:13px}}
@media(prefers-reduced-motion:reduce){
  .cyp-entry__card,.cyp-entry__card:before,.cyp-entry__card-glow{animation:none!important;transform:none!important;}
  .cyp-entry__submit,.cyp-entry__input-wrap{transition:none!important;}
}

/* Evita recorte horizontal del formulario en pantallas pequeñas. */
@media(max-width:790px){
  .cyp-entry{grid-template-columns:minmax(0,1fr);}
  .cyp-entry__card-region{min-width:0;max-width:100%;}
  .cyp-entry__card{min-width:0;max-width:100%;}
  .cyp-entry__card-head p{max-width:100%;}
}
@media(max-width:500px){
  .cyp-entry{padding:14px 12px 24px;}
  .cyp-entry__card{padding:24px 18px 22px;}
  .cyp-entry__logo{width:min(66vw,270px);}
  .cyp-entry__security-label{white-space:normal;min-width:0;gap:5px;font-size:9px;padding:7px;}
  .cyp-entry__security-label span:last-child{min-width:0;text-align:center;}
  .cyp-entry__security-label strong{white-space:nowrap;}
  .cyp-entry__card-head p{line-height:1.5;}
}

@media(max-width:600px){
  .cyp-entry__card-region{justify-content:flex-start;}
  .cyp-entry__card{width:100%;max-width:380px;}
}
