/* CRYOTALE R23: restore R20 desktop exactly; R21/R22 mobile stays as before. */
@media (max-width:850px) {
/* CRYOTALE R21 — mobile-focused refinement over R20.
   Goals: keep desktop R20 behavior, remove AI logo attempts, refine "欢迎来到冰叙域",
   use a separate vertical Shuangyin portrait on phones, and make the form box highly transparent.
   No JS / backend / auth logic changes.
*/
#auth-view .cryo-r21-welcome{
  position:relative!important;
  display:block!important;
  margin:0 auto 16px!important;
  padding:8px 20px 6px!important;
  width:min(100%, 500px)!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.02!important;
}
#auth-view .cryo-r21-welcome .welcome-top,
#auth-view .cryo-r21-welcome .welcome-bottom{
  display:block!important;
  font-family:'STKaiti','Kaiti SC','KaiTi','Noto Serif CJK SC','Songti SC',serif!important;
}
#auth-view .cryo-r21-welcome .welcome-top{
  margin:0 0 2px!important;
  font-size:clamp(17px,1.4vw,23px)!important;
  font-weight:700!important;
  letter-spacing:.26em!important;
  color:rgba(239,249,255,.96)!important;
  text-shadow:0 2px 8px rgba(6,22,60,.72), 0 0 20px rgba(123,227,255,.35)!important;
}
#auth-view .cryo-r21-welcome .welcome-bottom{
  font-size:clamp(34px,3.45vw,54px)!important;
  font-weight:800!important;
  letter-spacing:.10em!important;
  color:transparent!important;
  background:linear-gradient(180deg,#ffffff 0%,#e5f7ff 24%,#a2ebff 54%,#74d8ff 78%,#d7f2ff 100%)!important;
  -webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;
  filter:drop-shadow(0 4px 10px rgba(3,16,51,.68)) drop-shadow(0 0 20px rgba(96,206,255,.44))!important;
}
#auth-view .cryo-r21-welcome::before,
#auth-view .cryo-r21-welcome::after{
  content:''!important;
  position:absolute!important;
  top:50%!important;
  width:18px!important;
  height:18px!important;
  border-radius:50%!important;
  transform:translateY(-50%) rotate(45deg)!important;
  border:1px solid rgba(171,236,255,.62)!important;
  box-shadow:0 0 12px rgba(103,225,255,.45), inset 0 0 9px rgba(134,231,255,.16)!important;
  opacity:.95!important;
}
#auth-view .cryo-r21-welcome::before{left:8px!important}
#auth-view .cryo-r21-welcome::after{right:8px!important}
#auth-view .auth-box{
  position:relative!important;
  background:linear-gradient(180deg,rgba(6,20,48,.08) 0%, rgba(6,20,48,.03) 54%, rgba(6,20,48,.06) 100%)!important;
  backdrop-filter:blur(2px)!important;
  -webkit-backdrop-filter:blur(2px)!important;
  border:1.1px solid rgba(166,236,255,.84)!important;
  box-shadow:0 0 0 1px rgba(114,219,255,.10),0 0 16px rgba(69,194,255,.24), inset 0 1px 0 rgba(225,250,255,.24)!important;
}
#auth-view .auth-box::before{
  content:''!important;
  position:absolute!important;
  inset:10px!important;
  border-radius:18px!important;
  pointer-events:none!important;
  border:1px solid rgba(171,236,255,.10)!important;
}
#auth-view .auth-panel .tabs{background:transparent!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important}
#auth-view .auth-panel .tab:not(.active){background:rgba(8,28,70,.12)!important;color:rgba(245,252,255,.85)!important}
#auth-view .auth-panel .tab.active{
  background:linear-gradient(180deg,rgba(26,91,214,.92) 0%, rgba(39,118,230,.88) 100%)!important;
  box-shadow:0 0 14px rgba(98,218,255,.30), inset 0 0 0 1px rgba(202,248,255,.55)!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(7,21,52,.14)!important;
  border:1px solid rgba(184,229,255,.66)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 1px rgba(9,27,56,.04)!important;
}
#auth-view .auth-panel .auth-form input::placeholder,
#auth-view .auth-panel .cryo-secure-row input::placeholder,
#auth-view .auth-panel #invite-row input::placeholder{color:rgba(228,241,255,.64)!important}
#auth-view .auth-panel .primary-btn{
  background:linear-gradient(90deg,#76efff 0%,#93c8ff 100%)!important;
  color:#07224b!important;
  box-shadow:0 0 18px rgba(112,227,255,.34), 0 10px 26px rgba(4,31,79,.14)!important;
}
#auth-view .auth-panel .primary-btn:hover{filter:brightness(1.03)!important}
#auth-view .auth-panel .cryo-action-tools,
#auth-view .auth-panel .support-line{position:relative!important;z-index:1!important}

@media (min-width:851px){
  /* Keep desktop composition similar to R20, only polish the title and transparency. */
  #auth-view .cryo-r21-welcome{width:min(100%,430px)!important;margin:0 auto 18px!important;padding:0 18px 4px!important}
  #auth-view .cryo-r21-welcome .welcome-top{font-size:clamp(17px,1.05vw,20px)!important}
  #auth-view .cryo-r21-welcome .welcome-bottom{font-size:clamp(34px,2.7vw,46px)!important}
  #auth-view .cryo-r21-welcome::before{left:4px!important}
  #auth-view .cryo-r21-welcome::after{right:4px!important}
  #auth-view .auth-box{background:linear-gradient(180deg,rgba(6,20,48,.05) 0%, rgba(6,20,48,.02) 60%, rgba(6,20,48,.04) 100%)!important}
}

@media (max-width:850px){
  #auth-view.auth-layout{
    background-color:#071635!important;
    background-image:
      linear-gradient(180deg,rgba(6,15,40,.03) 0%,rgba(6,15,40,.05) 18%,rgba(4,12,35,.18) 43%,rgba(3,10,32,.28) 66%,rgba(3,9,28,.46) 100%),
      url('/static/cryo_login_r21_v1/shuangyin-mobile-r21-1080x1920.webp?v=20261107-r21-mobilebg01')!important;
    background-size:cover,cover!important;
    background-position:center top,center top!important;
    background-repeat:no-repeat!important;
  }
  #auth-view .auth-panel,
  #auth-view:has(#register-tab.active) .auth-panel{
    padding:clamp(156px,27dvh,238px) 16px 22px!important;
  }
  #auth-view .cryo-r21-welcome{
    width:min(100%, 430px)!important;
    margin:0 auto 14px!important;
    padding:0 18px 6px!important;
  }
  #auth-view .cryo-r21-welcome .welcome-top{
    font-size:clamp(15px,3.85vw,18px)!important;
    letter-spacing:.22em!important;
    margin-bottom:5px!important;
  }
  #auth-view .cryo-r21-welcome .welcome-bottom{
    font-size:clamp(34px,8.4vw,43px)!important;
    letter-spacing:.10em!important;
  }
  #auth-view .cryo-r21-welcome::before,
  #auth-view .cryo-r21-welcome::after{
    width:14px!important;height:14px!important;top:54%!important;
  }
  #auth-view .cryo-r21-welcome::before{left:4px!important}
  #auth-view .cryo-r21-welcome::after{right:4px!important}
  #auth-view .auth-box{
    width:min(100%, 430px)!important;
    max-width:430px!important;
    padding:18px 16px 17px!important;
    border-radius:24px!important;
    background:linear-gradient(180deg,rgba(6,20,48,.06) 0%, rgba(6,20,48,.02) 58%, rgba(6,20,48,.04) 100%)!important;
    box-shadow:0 0 0 1px rgba(119,223,255,.10),0 0 16px rgba(85,198,255,.22), inset 0 1px 0 rgba(228,250,255,.22)!important;
  }
  #auth-view .auth-box::before{inset:8px!important;border-radius:20px!important}
  #auth-view .auth-panel .tab{min-height:46px!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:46px!important;height:46px!important;font-size:14px!important}
  #auth-view .auth-panel .primary-btn{min-height:50px!important;font-size:16px!important}
}

@media (max-width:390px){
  #auth-view .auth-panel,
  #auth-view:has(#register-tab.active) .auth-panel{padding:clamp(145px,24dvh,205px) 12px 18px!important}
  #auth-view .cryo-r21-welcome .welcome-bottom{font-size:clamp(31px,8.8vw,38px)!important}
  #auth-view .auth-box{padding:16px 13px 15px!important;border-radius:20px!important}
}
@media (max-width:850px) and (max-height:640px){
  #auth-view .auth-panel,
  #auth-view:has(#register-tab.active) .auth-panel{padding-top:clamp(126px,24dvh,188px)!important}
}
}
