/* TECNOLINE · Prototipo Duo Line V7
   Simula dos capas de una sola tela de franjas, alineación y recogida.
   No afecta el formulario, navegación o autenticación. */
body.login-page .login-card { position: relative; }
body.login-page .tln-duo, body.login-page .tln-duo * { box-sizing: border-box; }
body.login-page .tln-duo {
  position: absolute;
  z-index: 20;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  animation: tln-duo-dismiss .26s ease 3.55s forwards;
}
/* Ambas capas van juntas bajo el mismo cajón y comparten barra inferior. */
body.login-page .tln-duo__shade {
  position: absolute;
  top: 31px;
  left: 0;
  right: 0;
  height: calc(100% - 31px);
  z-index: 2;
  overflow: hidden;
  background: rgba(235,225,207,.87);
  box-shadow: 0 8px 14px rgba(44,38,28,.11), inset 7px 0 10px rgba(70,55,34,.09), inset -7px 0 10px rgba(70,55,34,.09);
  animation: tln-duo-lift 1.84s cubic-bezier(.53,.025,.19,1) 1.48s forwards;
}
body.login-page .tln-duo__layer {
  position: absolute;
  inset: 0;
  background-repeat: repeat-y;
  background-size: 100% 84px;
}
/* Capa trasera. Primer ajuste: desplazamiento relativo de media franja. */
body.login-page .tln-duo__layer--rear {
  z-index: 1;
  background-image:
    repeating-linear-gradient(90deg,rgba(255,255,255,.045) 0 1px,transparent 1px 3px),
    repeating-linear-gradient(180deg,
        rgba(181,155,116,.90) 0px, rgba(211,191,159,.92) 37px,
        rgba(236,221,198,.36) 40px, rgba(255,255,252,.13) 42px,
        rgba(255,255,252,.12) 80px, rgba(232,219,201,.31) 84px);
  background-size: 100% 84px;
  background-position-y: 42px;
  animation: tln-duo-rear-travel 3.32s ease-in-out .08s forwards;
}
/* Capa frontal: líneas opacas alternadas con voile claro. */
body.login-page .tln-duo__layer--front {
  z-index: 2;
  background-image:
    repeating-linear-gradient(90deg,rgba(255,255,255,.067) 0 1px,transparent 1px 3px),
    repeating-linear-gradient(180deg,
      rgba(214,196,168,.98) 0px,
      rgba(223,207,181,.99) 17px,
      rgba(202,179,145,.98) 38px,
      rgba(169,143,110,.48) 40px,
      rgba(255,255,250,.20) 42px,
      rgba(255,255,250,.12) 79px,
      rgba(194,173,146,.37) 83px,
      rgba(214,196,168,.98) 84px);
  background-size: 100% 84px;
  box-shadow: inset 8px 0 13px -8px rgba(62,48,31,.28),inset -8px 0 13px -8px rgba(62,48,31,.2);
  animation: tln-duo-front-travel 3.32s ease-in-out .08s forwards;
}
/* Costura/terminación inferior: se desplaza con la cortina, no de forma independiente. */
body.login-page .tln-duo__bottom {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  border-top: 1px solid rgba(255,255,255,.68);
  border-bottom: 1px solid rgba(83,87,78,.4);
  background: linear-gradient(180deg,#faf9f5 0%, #d6d8d1 28%, #aeb3aa 66%,#80877e 91%,#e1e3db 100%);
  box-shadow: 0 4px 8px rgba(45,40,30,.23);
}
/* Cajón de aluminio, mismo ancho de tela (left 0, right 0). */
body.login-page .tln-duo__cassette {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  border-bottom: 1px solid rgba(50,54,49,.63);
  background:
      repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 1px,transparent 1px 3px),
      linear-gradient(180deg,#c5c7c1,#8d928b 16%,#777e76 48%,#626963 78%,#424944 95%,#7b8179);
  box-shadow: inset 0 1px rgba(249,251,244,.6),0 4px 5px rgba(40,42,36,.26),0 9px 12px rgba(50,45,36,.14);
}
body.login-page .tln-duo__cassette::before,
body.login-page .tln-duo__cassette::after {
  content:'';position:absolute;top:2px;width:9px;height:25px;
  border:1px solid rgba(61,66,61,.35);border-radius:2px;
  background:linear-gradient(90deg,#585e58,#9a9e96 45%,#666d66);
}
body.login-page .tln-duo__cassette::before {left:0;}
body.login-page .tln-duo__cassette::after {right:0;}
/* Cadena fina y larga de la V6. */
body.login-page .tln-duo__chain {
  position:absolute;z-index:8;top:27px;right:2px;width:18px;
  height:49%;min-height:190px;max-height:315px;
  filter:drop-shadow(1px 1px 1px rgba(47,46,42,.22));
}
body.login-page .tln-duo__chain::before,
body.login-page .tln-duo__chain::after {
  content:'';position:absolute;z-index:2;top:0;width:6px;height:calc(100% - 7px);
  background:radial-gradient(circle at center,rgba(255,255,252,.93) 0px,#c5c7bf 1.1px,#80877e 2px,transparent 2.7px) center top / 6px 8px repeat-y;
}
body.login-page .tln-duo__chain::before {left:2px;}
body.login-page .tln-duo__chain::after {right:2px;}
body.login-page .tln-duo__chain span {
  position:absolute;left:4px;bottom:1px;width:10px;height:10px;
  border-bottom:3px dotted #a6aaa1;border-radius:0 0 50% 50%;
}
/* La primera parte del movimiento solo alinea las franjas: la cortina sigue bajada.
   Después ambas capas avanzan hacia arriba mientras sube la barra inferior. */
@keyframes tln-duo-rear-travel {
  0%, 10% {background-position-y:42px;}
  31%, 39% {background-position-y:0px;}
  100% {background-position-y:-294px;}
}
@keyframes tln-duo-front-travel {
  0%,39% {background-position-y:0px;}
  100% {background-position-y:-294px;}
}
@keyframes tln-duo-lift {
  from {height:calc(100% - 31px);}
  to {height:2px;}
}
@keyframes tln-duo-dismiss {
  from {opacity:1;visibility:visible;}
  to {opacity:0;visibility:hidden;}
}
/* La animación nunca debe impedir iniciar sesión. */
@media(max-width:700px),(prefers-reduced-motion:reduce) {
  body.login-page .tln-duo {display:none !important;}
}
