/* Login CyP — edición aprobada: minimalista, sin scroll y sin halos excesivos. */
html:has(body.portal--trabajadores.portal--guest .cyp-entry){
  zoom:1!important;width:100%!important;height:100%!important;overflow:hidden!important;
}
body.portal--trabajadores.portal--guest:has(.cyp-entry) {
  margin:0!important;padding:0!important;width:100%!important;
  height:100vh!important;height:100dvh!important;min-height:0!important;
  overflow:hidden!important;background:#0d1a24!important;
}
body.portal--trabajadores.portal--guest .cyp-entry {
  width:100%!important;max-width:none!important;
  height:100vh!important;height:100dvh!important;
  min-height:0!important;max-height:100dvh!important;overflow:hidden!important;
  padding:clamp(17px,2.1vw,40px) clamp(26px,4.3vw,78px)!important;
  grid-template-columns:minmax(0,1fr) minmax(395px,540px)!important;
  gap:clamp(10px,2.5vw,48px)!important;
  align-items:center!important;
  box-sizing:border-box!important;
}
.cyp-entry__photo{
  inset:0!important;transform:none!important;
  background-image:url('../img/portal/cyp-login-obra-hd.jpg')!important;
  background-repeat:no-repeat!important;background-size:cover!important;
  background-position:center 49%!important;
  filter:saturate(.93) contrast(1.04)!important;
}
.cyp-entry__vignette {
  background:
    linear-gradient(90deg,rgba(5,16,27,.70) 0%,rgba(8,22,32,.44) 47%,rgba(5,17,26,.42) 100%),
    linear-gradient(0deg,rgba(3,14,23,.58) 0%,transparent 50%,rgba(6,17,26,.18) 100%)!important;
}
.cyp-entry__accent--top{
  width:120px!important;right:-101px!important;
  background:rgba(59,121,31,.23)!important;
  box-shadow:none!important;border-left:1px solid rgba(139,205,85,.33)!important;
}
.cyp-entry__accent--bottom{
  width:115px!important;right:-100px!important;
  background:rgba(54,122,27,.20)!important;
  border-left:1px solid rgba(135,214,86,.38)!important;
}
.cyp-entry__story{padding-bottom:0!important;max-width:605px!important;}
.cyp-entry__story h1{font-size:clamp(39px,3.85vw,65px)!important;line-height:1.08!important;letter-spacing:-.042em!important;}
.cyp-entry__story h1 span{color:#93e947!important;}
.cyp-entry__overline{font-size:11px!important;letter-spacing:.24em!important;}
.cyp-entry__story-line{background:#84c947!important;box-shadow:none!important;}
.cyp-entry__story p{color:rgba(250,251,253,.91)!important;border-left-color:#7fce3c!important;}
.cyp-entry__card-region{
  width:100%!important;max-width:540px!important;min-width:0!important;
  justify-self:end!important;justify-content:center!important;
  transform:translateX(clamp(-76px,-4.5vw,-28px))!important;
}
.cyp-entry__card {
  background:linear-gradient(153deg,rgba(16,29,38,.78),rgba(9,22,30,.76))!important;
  border:1px solid rgba(222,234,232,.50)!important;
  border-radius:26px!important;
  padding:clamp(22px,2.5vw,38px) clamp(24px,3vw,43px) 25px!important;
  max-height:calc(100dvh - 25px)!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:none!important;
  box-shadow:0 22px 55px rgba(0,7,14,.33),inset 0 1px 0 rgba(255,255,255,.15)!important;
  -webkit-backdrop-filter:blur(15px) saturate(1.08)!important;
  backdrop-filter:blur(15px) saturate(1.08)!important;
  animation:cyp-login-arrive .4s cubic-bezier(.2,.8,.2,1) both!important;
}
.cyp-entry__card::-webkit-scrollbar{display:none!important;}
.cyp-entry__card:before{
  animation:cyp-refined-border 2.2s ease-out .16s 1 both!important;
  background:conic-gradient(from 192deg,transparent 0 250deg,rgba(168,215,144,.32) 285deg,rgba(195,238,180,.70) 302deg,transparent 322deg)!important;
}
.cyp-entry__card-glow{
  width:210px!important;height:110px!important;top:-70px!important;left:-62px!important;
  filter:blur(24px)!important;
  background:radial-gradient(ellipse,rgba(148,217,92,.25),transparent 72%)!important;
  animation:cyp-refined-glow 1.6s ease-out .1s 1 both!important;
}
.cyp-entry__logo{
  width:clamp(215px,17.7vw,305px)!important;
  height:auto!important;max-width:100%!important;
  margin:0 auto 0!important;
  filter:drop-shadow(0 3px 5px rgba(0,0,0,.22))!important;
}
.cyp-entry__wordmark{
  margin:-3px auto 10px!important;letter-spacing:.31em!important;
  font-size:10px!important;text-align:center!important;
}
.cyp-entry__card-head p{margin:4px auto 17px!important;color:rgba(244,247,250,.85)!important;}
.cyp-entry__security-label{
  border-color:rgba(141,202,93,.42)!important;
  box-shadow:none!important;background:rgba(8,24,30,.34)!important;
  margin-bottom:17px!important;
}
.cyp-entry__security-label svg{color:#95dc5c!important;}
.cyp-entry__input-wrap {
  border-color:rgba(207,224,226,.44)!important;
  background:rgba(227,240,244,.035)!important;
  box-shadow:none!important;
}
.cyp-entry__input-wrap:focus-within{
  border-color:#8cc963!important;box-shadow:0 0 0 2px rgba(137,192,95,.13)!important;
  background:rgba(219,239,244,.065)!important;
}
.cyp-entry__submit{
  border:1px solid rgba(194,231,151,.60)!important;
  background:linear-gradient(180deg,#83d829 0%,#4ba91c 100%)!important;
  box-shadow:0 7px 18px rgba(14,51,16,.20),inset 0 1px 0 rgba(255,255,255,.29)!important;
  font-size:18px!important;
}
.cyp-entry__foot{margin-top:18px!important;padding-top:14px!important;}
@keyframes cyp-login-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes cyp-refined-border{
  0%{opacity:.0;transform:rotate(-20deg)}
  38%{opacity:.55}
  100%{opacity:.1;transform:rotate(145deg)}
}
@keyframes cyp-refined-glow{
  0%{opacity:0}
  40%{opacity:.23}
  100%{opacity:.08}
}
@media(max-height:770px) and (min-width:791px){
  .cyp-entry__card{padding:18px 27px!important;}
  .cyp-entry__logo{width:235px!important;}
  .cyp-entry__card-head p{margin:2px auto 11px!important;font-size:11px!important;}
  .cyp-entry__security-label{margin-bottom:10px!important;min-height:30px!important;}
  .cyp-entry__form{gap:11px!important;}
  .cyp-entry__input-wrap{height:42px!important;}
  .cyp-entry__submit{min-height:45px!important;margin-top:4px!important;}
  .cyp-entry__foot{margin-top:11px!important;padding-top:10px!important;}
}
@media(max-width:790px){
  body.portal--trabajadores.portal--guest .cyp-entry{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    padding:12px!important;gap:0!important;
    justify-items:center!important;
  }
  .cyp-entry__story{display:none!important;}
  .cyp-entry__card-region{
    transform:none!important;max-width:430px!important;justify-self:center!important;
  }
  .cyp-entry__card{max-height:calc(100dvh - 24px)!important;max-width:100%!important;padding:clamp(18px,5vw,30px)!important;}
  .cyp-entry__logo{width:min(70vw,270px)!important;}
  .cyp-entry__photo{background-position:center 55%!important;}
  .cyp-entry__vignette{background:linear-gradient(90deg,rgba(4,15,25,.58),rgba(4,15,25,.67))!important;}
}
@media(max-height:600px){
 .cyp-entry__card-head p{display:none!important;}
 .cyp-entry__card{max-height:calc(100dvh - 16px)!important;}
}
@media(prefers-reduced-motion:reduce){
 .cyp-entry__card,.cyp-entry__card:before,.cyp-entry__card-glow{animation:none!important;}
}
