/* CRYOTALE R15 | Poster-inspired icy neon login gateway.
   Strictly scoped to #auth-view. Existing auth JS, validation and chat routes unchanged.
   No slideshow, timers, canvas, or extra fetches; the source poster's painted form
   is obscured so that all visible inputs/buttons are real HTML controls.
*/
#auth-view.auth-layout{
  position:relative;isolation:isolate;display:block;box-sizing:border-box;
  width:100%;height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;
  padding:0;margin:0;
  background-color:#07132e;
  background-image:
    radial-gradient(ellipse 75% 65% at 50% 72%,rgba(24,76,169,.08),transparent 85%),
    url('/static/cryo_login_r15_v1/shuangyin-cyber-poster.webp?v=20261107-r15-a');
  background-size:cover,contain;
  background-position:center,center;
  background-repeat:no-repeat;
}
/* Only on the auth screen: no page-level scrollbar; small-screen forms scroll
   inside the real glass panel, preserving Turnstile and email fields. */
html:has(#auth-view:not(.hidden)),
body:has(#auth-view:not(.hidden)){height:100%;overflow:hidden;}
#auth-view.auth-layout::before{
  display:block!important;content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(2,9,24,.04),transparent 58%,rgba(2,9,30,.08));
}
#auth-view.auth-layout::after{
  display:block!important;content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse 24% 53% at 79% 52%,rgba(60,159,254,.12),transparent 93%);
}
/* Desktop poster already contains its non-interactive logo, headline, feature
   cards and decorative character quotation. Hide their duplicate HTML only on
   desktop; keep the source nodes for future mobile/accessibility presentation. */
@media(min-width:851px){
  #auth-view .intro-panel{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0;white-space:nowrap;}
}
#auth-view .cryo-r14-cubes{z-index:1;opacity:.78;pointer-events:none}
#auth-view .cryo-r14-cube{box-shadow:0 0 12px rgba(125,215,255,.47),inset 0 0 8px rgba(203,244,255,.21);border-color:rgba(169,231,255,.85)}
/* Real glass form follows poster framing, not old rigid side-by-side split. */
#auth-view .auth-panel{
  position:absolute;z-index:3;top:clamp(74px,15vh,172px);bottom:clamp(24px,5.5vh,82px);
  left:auto;right:clamp(14px,3.4vw,74px);width:clamp(350px,32.4vw,555px);
  max-width:calc(100vw - 26px);min-height:0;overflow:visible;
  margin:0;padding:0;border:0;background:transparent;display:flex;align-items:stretch;
}
#auth-view .auth-panel::before,#auth-view .auth-panel::after{display:none!important}
#auth-view .auth-box{
  position:relative;isolation:isolate;box-sizing:border-box;z-index:4;
  width:100%;max-width:none;height:100%;min-height:0;margin:0;
  padding:clamp(22px,2.2vw,34px) clamp(21px,2.2vw,36px) 24px;
  overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
  scrollbar-color:#72b7f55e #0c205450;
  border:1.5px solid rgba(139,222,255,.88);border-radius:clamp(22px,2.2vw,35px);
  background:linear-gradient(143deg,rgba(9,37,86,.73),rgba(4,22,66,.64) 52%,rgba(9,34,87,.70));
  box-shadow:0 0 0 2px rgba(34,108,214,.24),inset 0 0 0 1px rgba(197,242,255,.16),
    inset 0 0 35px rgba(81,134,255,.12),0 0 26px rgba(73,198,255,.49),0 0 72px rgba(25,98,238,.27),0 19px 65px rgba(0,3,24,.50);
  backdrop-filter:blur(17px) saturate(1.48);-webkit-backdrop-filter:blur(17px) saturate(1.48);
}
#auth-view .auth-box::before{
  content:"";display:block!important;position:absolute;inset:0 0 auto;z-index:0;height:4px;pointer-events:none;
  background:linear-gradient(90deg,transparent 9%,#69dcff 26%,#c7f6ff 47%,#438cfa 70%,transparent 94%);
  box-shadow:0 0 16px #6bdcffb0;
}
#auth-view .auth-box::after{
  content:"✧";display:block!important;position:absolute;top:1px;right:23px;z-index:0;
  font:24px/1.1 sans-serif;color:#a9efff;opacity:.75;text-shadow:0 0 18px #65cbff;pointer-events:none;
}
#auth-view .auth-box>.eyebrow,#auth-view .auth-box>h2,#auth-view .auth-box>.subtitle{display:none}
#auth-view .auth-panel .tabs{
  position:relative;z-index:1;flex-shrink:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;
  padding:5px 5px 8px;margin:2px 0 clamp(17px,3vh,27px);
  background:transparent;border:0;border-bottom:1px solid rgba(155,203,250,.27);border-radius:0;
}
#auth-view .auth-panel .tab{
  min-width:0;min-height:48px;padding:10px 13px;border:1px solid transparent;border-radius:12px;
  color:#c3dafa;background:rgba(14,43,98,.18);font-size:16px;font-weight:750;
  transition:background .18s,border-color .18s,box-shadow .18s;
}
#auth-view .auth-panel .tab.active{
  border-color:#81deff;color:#fbffff;
  background:linear-gradient(96deg,rgba(21,115,220,.74),rgba(40,95,237,.82));
  box-shadow:0 0 17px rgba(71,206,255,.58),inset 0 -3px 0 #6ceaff,0 0 0 1px rgba(132,223,255,.12);
}
#auth-view .auth-panel .auth-form{display:flex;flex-direction:column;gap:4px}
#auth-view .auth-panel .auth-form label,
#auth-view .auth-panel .cryo-secure-row label,
#auth-view .auth-panel #invite-row label{color:#d6ecff;font-size:12px;font-weight:700;margin:6px 0 2px;line-height:1.5}
#auth-view .auth-panel .auth-form input,
#auth-view .auth-panel .cryo-secure-row input,
#auth-view .auth-panel #invite-row input{
  min-height:48px;height:48px;max-width:100%;box-sizing:border-box;
  border-radius:9px;padding:10px 15px;color:#eaf8ff;
  border:1px solid rgba(132,196,249,.54);
  background:linear-gradient(118deg,rgba(26,57,112,.42),rgba(48,86,157,.24));
  box-shadow:inset 0 1px 0 rgba(192,232,255,.13);
}
#auth-view .auth-panel .auth-form input::placeholder{color:#9db9d6}
#auth-view .auth-panel .auth-form input:focus,
#auth-view .auth-panel .cryo-secure-row input:focus{border-color:#a2f2ff;outline:1px solid #75d8ff;box-shadow:0 0 12px rgba(91,203,255,.28)}
#auth-view .auth-panel .primary-btn{
  margin-top:clamp(15px,2.4vh,23px);min-height:54px;flex-shrink:0;border:1px solid #a8efff;
  border-radius:11px;color:#062b57;font-size:16px;font-weight:900;letter-spacing:.03em;
  background:linear-gradient(104deg,#75f2ff 0%,#5dd6f4 38%,#85a7ff 100%);
  box-shadow:0 0 19px rgba(94,220,255,.63),0 8px 30px rgba(36,116,255,.25),inset 0 1px 0 #fff9;
}
#auth-view .auth-panel .primary-btn:hover{filter:brightness(1.05)}
#auth-view .auth-panel .cryo-action-tools{margin:clamp(15px,2.4vh,23px) auto 4px;gap:8px 21px}
#auth-view .auth-panel .cryo-link-button{font-size:12px;color:#99eafb;text-decoration:underline;text-underline-offset:3px}
#auth-view .auth-panel #cryo-email-actions{margin-top:8px}
#auth-view .auth-panel #cryo-register-message{font-size:12px;line-height:1.45}
#auth-view .auth-panel .bottom-note{
  border-top:1px solid rgba(158,216,248,.25);margin:17px 0 0;padding:15px 0 0;
  color:#a8ccea;font-size:11px;line-height:1.65;text-align:center;
}
#auth-view .cryo-turnstile-wrap{max-width:100%;overflow:hidden}
#auth-view .auth-box input,#auth-view .auth-box button{position:relative;z-index:2}
#auth-view .auth-box .error-text{font-size:12px}
@media (min-width:851px) and (max-height:710px){
  #auth-view .auth-panel{top:7vh;bottom:4vh}
  #auth-view .auth-box{padding-top:18px;padding-bottom:18px}
  #auth-view .auth-panel .tab{min-height:42px}
  #auth-view .auth-panel .auth-form input{min-height:42px;height:42px}
}
/* Mobile: same icy palette but real text and usable inputs; no fake graphic fields. */
@media(max-width:850px){
  #auth-view.auth-layout{
    display:flex;flex-direction:column;height:100dvh;max-height:100dvh;min-height:0;overflow:hidden;
    padding:0 10px 10px;
    background-image:linear-gradient(180deg,rgba(4,13,38,.24) 0%,rgba(5,17,51,.74) 26%,#071532 57%,#06132a 100%),url('/static/cryo_login_r15_v1/shuangyin-mobile-portrait.webp?v=20261107-r15-a');
    background-size:cover,auto min(67vw,370px);background-position:center,top 0 left 2vw;
    background-repeat:no-repeat;
  }
  #auth-view .intro-panel{
    position:relative;display:flex;flex:0 0 auto;min-height:0;overflow:visible;
    height:clamp(122px,23dvh,204px);padding:10px 5px 0;margin:0;
    border:0;background:transparent;
  }
  #auth-view .intro-panel .brand{
    position:relative;z-index:2;margin-left:auto;align-self:flex-start;
    gap:7px;font-size:clamp(17px,4.5vw,23px);text-shadow:0 0 17px #021b48;
  }
  #auth-view .intro-panel .brand small{font-size:9px}
  #auth-view .intro-content{
    position:relative;z-index:1;max-width:100%;width:100%;padding:0;margin:auto 0 9px;
    text-align:right;text-shadow:0 2px 11px #021125;
  }
  #auth-view .intro-content .eyebrow{font-size:9px;justify-content:flex-end;color:#a9efff}
  #auth-view .intro-content h1{font-size:clamp(25px,6.4vw,36px);margin:5px 0;line-height:1.16}
  #auth-view .intro-content h1 span{color:#89ecff}
  #auth-view .intro-content p,#auth-view .intro-content .feature-tags,#auth-view .intro-panel .floating-card,#auth-view .intro-footer{display:none}
  #auth-view .auth-panel{
    position:relative;inset:auto;display:flex;flex:1 1 auto;min-height:0;width:100%;max-width:530px;
    padding:0;margin:0 auto;overflow:visible;
  }
  #auth-view .auth-box{
    height:100%;max-height:100%;min-height:0;padding:clamp(16px,3.6vw,24px) clamp(16px,4.1vw,23px) 19px;
    border-radius:23px;
    background:linear-gradient(150deg,rgba(8,32,80,.76),rgba(7,23,64,.77));
    backdrop-filter:blur(10px) saturate(1.28);-webkit-backdrop-filter:blur(10px) saturate(1.28);
    box-shadow:0 0 0 1px #6fcbff4c,0 0 24px #42bdff63,inset 0 0 15px #68c8ff17;
  }
  #auth-view .auth-panel .tabs{margin-bottom:13px;padding:2px 3px 8px}
  #auth-view .auth-panel .tab{min-height:43px;font-size:14px}
  #auth-view .auth-panel .auth-form input,#auth-view .auth-panel .cryo-secure-row input{min-height:46px;height:46px}
  #auth-view .auth-panel .primary-btn{min-height:49px;margin-top:12px}
  #auth-view .auth-panel .cryo-action-tools{margin:14px auto 3px}
  #auth-view .auth-panel .bottom-note{margin-top:13px;padding-top:11px}
  #auth-view .cryo-r14-cube:nth-child(n+5){display:none}
}
@media(max-width:370px){
  #auth-view.auth-layout{padding-inline:7px}
  #auth-view .intro-panel{height:clamp(110px,20dvh,150px)}
  #auth-view .intro-content h1{font-size:25px}
  #auth-view .auth-box{border-radius:19px;padding:13px 13px 15px}
  #auth-view .auth-panel .tab{min-height:40px}
}
@media(prefers-reduced-motion:reduce){
  #auth-view .cryo-r14-cube{display:none!important}
}
