/* CRYOTALE R20 — single title and transparent real login / registration UI
   Works over R19. Auth presentation ONLY; no JS/business logic touched.
   Desktop Shuangyin remains R17 2560x1440 aspect-preserving clean art.
   Mobile is separate 1080x1920 transparent-form full-screen portrait artwork.
*/
#auth-view.auth-layout{
  background-image:linear-gradient(95deg,rgba(2,10,33,.03) 0%,rgba(2,9,28,.01) 52%,rgba(4,15,39,.14) 100%),
    url('/static/cryo_login_r17_v1/shuangyin-clean-r17-2k.webp?v=20261107-r17-01')!important;
  background-size:cover,cover!important;
  background-position:center,center!important;
  background-repeat:no-repeat!important;
}
/* Critical: keep the auth view hidden after successful login, even on mobile. */
#auth-view.auth-layout.hidden{display:none!important}
#auth-view .intro-panel .brand,
#auth-view .intro-panel .intro-footer,
#auth-view .intro-content>.eyebrow,
#auth-view .intro-content>h1,
#auth-view .intro-content>p,
#auth-view .auth-box>.eyebrow,
#auth-view .auth-box>h2,
#auth-view .auth-box>.subtitle,
#auth-view .auth-box>.bottom-note,
#auth-view #cryo-reg-help-text{display:none!important}
/* Always keep functional errors, captcha retry, reset-email & invite controls. */
#auth-view .cryo-r18-welcome{
  display:block!important;position:relative!important;isolation:isolate;
  width:100%!important;box-sizing:border-box!important;max-width:100%!important;
  margin:0 0 14px!important;padding:15px 0 8px!important;
  text-align:center!important;white-space:nowrap!important;
  color:#f7fdff!important;
  font-family:'STKaiti','Kaiti SC','KaiTi','Noto Serif CJK SC','Songti SC',serif!important;
  font-size:clamp(25px,2.7vw,43px)!important;
  font-weight:700!important;letter-spacing:.07em!important;line-height:1.32!important;
  text-shadow:0 3px 7px #08204c,0 0 13px #81e3ffd6,0 0 30px #3989ffee!important;
  transform:none!important;
}
#auth-view .cryo-r18-welcome>span{display:inline!important;background:none!important;color:#f7fdff!important;-webkit-text-fill-color:#f7fdff!important;filter:none!important;text-shadow:inherit!important}
#auth-view .cryo-r18-welcome::before,
#auth-view .cryo-r18-welcome::after{
  content:'✧'!important;position:absolute!important;top:50%!important;display:block!important;
  width:auto!important;height:auto!important;left:0!important;right:auto!important;
  font:19px/1 sans-serif!important;color:#d1faff!important;
  border:0!important;background:none!important;transform:translateY(-50%)!important;
  text-shadow:0 0 14px #5fc6ff!important;
}
#auth-view .cryo-r18-welcome::after{content:'❄'!important;left:auto!important;right:0!important;font-size:18px!important}
#auth-view .auth-panel{border:none!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#auth-view .auth-box{
  background:transparent!important;background-image:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  border:1.25px solid rgba(171,236,255,.88)!important;
  box-shadow:0 0 0 1px rgba(63,171,255,.16),0 0 14px rgba(84,197,255,.36),inset 0 1px 0 rgba(218,250,255,.22)!important;
}
#auth-view .auth-panel .tabs{background:transparent!important}
#auth-view .auth-panel .tab:not(.active){background:rgba(5,28,70,.13)!important}
#auth-view .auth-panel .auth-form input,
#auth-view .auth-panel .cryo-secure-row input,
#auth-view .auth-panel #invite-row input{
  background:rgba(5,24,54,.27)!important;
  border:1px solid rgba(177,226,253,.70)!important;
  color:#fff!important;
  text-shadow:0 1px 3px rgba(3,12,37,.9);
}
#auth-view .auth-panel .auth-form label,
#auth-view .auth-panel .cryo-secure-row label,
#auth-view .auth-panel #invite-row label,
#auth-view .auth-panel .cryo-link-button{color:#f0faff!important;text-shadow:0 1px 4px #021735,0 0 8px rgba(13,62,110,.48)}
#auth-view .auth-panel .primary-btn{box-shadow:0 0 17px rgba(115,230,255,.48),0 6px 16px rgba(4,34,95,.18)!important}
#auth-view .cryo-r14-cubes{pointer-events:none;opacity:.46!important}
#auth-view .cryo-r14-cube:nth-child(n+13){display:none!important}
@media(min-width:851px){
  #auth-view .intro-panel{pointer-events:none!important}
  #auth-view .intro-content{pointer-events:none!important}
  #auth-view .intro-content .feature-tags{pointer-events:none}
  #auth-view .auth-panel,#auth-view:has(#register-tab.active) .auth-panel{
    position:absolute!important;z-index:5!important;
    top:50%!important;bottom:auto!important;left:auto!important;
    right:clamp(35px,5.3vw,115px)!important;
    width:clamp(320px,26vw,410px)!important;max-width:calc(100vw - 30px)!important;
    transform:translateY(-50%)!important;display:flex!important;flex-direction:column!important;
  }
  #auth-view .auth-box{max-height:calc(100dvh - 140px)!important;overflow-y:auto!important;overflow-x:hidden!important;
    padding:clamp(16px,1.3vw,21px) clamp(17px,1.6vw,24px) clamp(13px,1vw,20px)!important;
    border-radius:21px!important;
  }
  #auth-view .cryo-r18-welcome{font-size:clamp(29px,2.3vw,39px)!important}
  #auth-view .cryo-r18-welcome::before{left:-11px!important}
  #auth-view .cryo-r18-welcome::after{right:-9px!important}
}
@media(max-width:850px){
  #auth-view.auth-layout{
    position:relative!important;isolation:isolate!important;
    display:block!important;width:100%!important;height:100dvh!important;
    min-height:0!important;max-height:100dvh!important;overflow:hidden!important;
    padding:0!important;margin:0!important;
    background-color:#071635!important;
    background-image:linear-gradient(180deg,rgba(4,12,34,.06) 0%,rgba(5,13,35,.08) 26%,rgba(4,13,35,.29) 51%,rgba(2,10,31,.37) 100%),
       url('/static/cryo_login_r20_v1/shuangyin-mobile-r20-1080x1920.webp?v=20261107-r20-portrait01')!important;
    background-size:cover,cover!important;
    background-position:center,center!important;
    background-repeat:no-repeat!important;
  }
  #auth-view .intro-panel{display:none!important}
  #auth-view .auth-panel,#auth-view:has(#register-tab.active) .auth-panel{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
    position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;
    min-width:0!important;max-width:none!important;max-height:100dvh!important;
    margin:0!important;padding:clamp(214px,33dvh,335px) 15px 24px!important;
    box-sizing:border-box!important;border:0!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    transform:none!important;scrollbar-width:none;
  }
  #auth-view .auth-panel::-webkit-scrollbar{display:none}
  #auth-view .cryo-r18-welcome{
    flex:0 0 auto!important;display:block!important;margin:0 auto 12px!important;
    padding:8px 6px 6px!important;width:min(100%,440px)!important;
    font-size:clamp(24px,6vw,34px)!important;
    letter-spacing:0!important;line-height:1.28!important;
  }
  #auth-view .cryo-r18-welcome::before{left:-2px!important;font-size:12px!important}
  #auth-view .cryo-r18-welcome::after{right:-2px!important;font-size:12px!important}
  #auth-view .auth-box{
    width:min(100%,435px)!important;max-width:435px!important;
    flex:0 0 auto!important;height:auto!important;max-height:none!important;
    padding:18px 17px 16px!important;margin:0 auto!important;
    border-radius:20px!important;overflow:visible!important;
    background:rgba(3,12,33,.06)!important;box-shadow:0 0 0 1px rgba(101,207,255,.14),0 0 18px rgba(81,188,255,.44)!important;
  }
  #auth-view .auth-panel .tab{min-height:43px!important;font-size:14px!important}
  #auth-view .auth-panel .auth-form input,
  #auth-view .auth-panel .cryo-secure-row input,
  #auth-view .auth-panel #invite-row input{min-height:45px!important;height:45px!important;font-size:14px!important}
  #auth-view .auth-panel .primary-btn{min-height:48px!important}
  #auth-view .auth-panel .cryo-action-tools{gap:12px!important;margin:13px auto 0!important}
  #auth-view .cryo-r14-cube:nth-child(n+5){display:none!important}
}
@media(max-width:375px){
  #auth-view .auth-panel,#auth-view:has(#register-tab.active) .auth-panel{padding:clamp(180px,30dvh,245px) 11px 16px!important}
  #auth-view .auth-box{padding:14px 12px!important;border-radius:16px!important}
  #auth-view .cryo-r18-welcome{font-size:clamp(23px,6.2vw,26px)!important}
}
@media(max-width:850px) and (max-height:640px){
  #auth-view .auth-panel,#auth-view:has(#register-tab.active) .auth-panel{padding-top:clamp(135px,29dvh,210px)!important}
}
@media(prefers-reduced-motion:reduce){#auth-view .cryo-r14-cube{display:none!important}}
