/* CRYOTALE R17 · real typography over text-free 2K cyber-ice Shuangyin art.
   Auth page only: no stretch, no baked UI labels, no changes to login/registration scripts.
   Desktop background: aspect-preserving cover, never 100% 100% distortion.
*/
#auth-view.auth-layout{
  background-color:#091933;
  background-image:linear-gradient(102deg,rgba(2,8,29,.13),rgba(5,17,40,.02) 45%,rgba(4,13,32,.09)),url('/static/cryo_login_r17_v1/shuangyin-clean-r17-2k.webp?v=20261107-r17-01');
  background-size:100% 100%,cover;
  background-position:center,center;
  background-repeat:no-repeat;
}
#auth-view.auth-layout::before{background:linear-gradient(90deg,rgba(5,13,31,.1),transparent 66%);filter:none;transform:none;}
#auth-view.auth-layout::after{background:none;}
/* R16 previously hid the entire desktop intro because words were painted in the poster.
   Restore REAL HTML branding, headline and feature list over clean imagery. */
@media(min-width:851px){
  #auth-view .intro-panel{
    display:block;position:absolute;top:0;left:0;bottom:0;right:auto;z-index:2;
    clip-path:none;width:63%;height:100%;min-height:0;max-height:100%;
    overflow:visible;white-space:normal;border:0;padding:0;margin:0;
    background:none;isolation:auto;pointer-events:none;
  }
  #auth-view .intro-panel::before,#auth-view .intro-panel::after{display:none!important;content:none!important}
  #auth-view .intro-panel .brand{
    position:absolute;z-index:2;top:clamp(20px,4.2vh,45px);left:55%;transform:translateX(-45%);
    margin:0;padding:0;display:flex;align-items:center;gap:11px;
    font-size:clamp(21px,1.9vw,30px);white-space:nowrap;
    color:#f7feff;text-shadow:0 1px 9px #031028,0 0 20px rgba(81,208,255,.65);
  }
  #auth-view .intro-panel .brand small{font-size:10px;letter-spacing:.32em;color:#b6eafa}
  #auth-view .intro-content{
    position:absolute;top:clamp(140px,20vh,235px);left:clamp(390px,35vw,705px);
    width:clamp(235px,22vw,355px);max-width:none;margin:0;padding:0;
    text-align:center;text-shadow:0 3px 16px rgba(1,13,36,.85),0 0 20px rgba(4,29,65,.42);
  }
  #auth-view .intro-content .eyebrow{justify-content:center;gap:5px;letter-spacing:.18em;font-size:clamp(8px,.72vw,11px);color:#b4f3ff;white-space:nowrap}
  #auth-view .intro-content h1{font-size:clamp(30px,3vw,49px);line-height:1.2;margin:13px 0 11px;letter-spacing:-.045em;color:#fff}
  #auth-view .intro-content h1 span{color:#8defff;text-shadow:0 0 18px #46c6ff85}
  #auth-view .intro-content p{font-size:clamp(11px,.92vw,13px);line-height:1.8;margin:0;color:#e5f8ff}
  #auth-view .intro-content .feature-tags{
    position:fixed;left:clamp(35px,4vw,86px);bottom:clamp(35px,7vh,83px);
    z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;
    width:min(560px,47vw);max-width:none;padding:13px 8px;
    margin:0;border:1px solid rgba(121,222,255,.54);border-radius:19px;
    background:linear-gradient(110deg,rgba(6,28,66,.35),rgba(7,33,73,.22));
    box-shadow:0 0 21px rgba(63,172,255,.24),inset 0 1px 0 rgba(194,243,255,.26);
    backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
    text-align:center;text-shadow:0 2px 6px #021329;
  }
  #auth-view .intro-content .feature-tags span{
    display:flex;align-items:center;justify-content:center;
    padding:7px 4px;min-width:0;margin:0;border:0;border-right:1px solid rgba(177,234,255,.25);
    border-radius:0;background:none;backdrop-filter:none;
    font-size:clamp(10px,.82vw,12px);font-weight:700;color:#ecfcff;white-space:nowrap;
  }
  #auth-view .intro-content .feature-tags span:last-child{border-right:0}
  #auth-view .intro-footer{display:none}
  #auth-view .auth-panel{
    right:clamp(34px,5.1vw,102px);width:clamp(340px,28vw,455px);
    top:50%;bottom:auto;
    transform:translateY(-50%) rotate(-.65deg);transform-origin:center;
    z-index:4;
  }
  #auth-view:has(#register-tab.active) .auth-panel{top:50%;bottom:auto;transform:translateY(-50%) rotate(-.65deg)}
  #auth-view .auth-box{height:auto;max-height:88dvh;border-radius:24px;padding:clamp(20px,2vw,27px) clamp(19px,2vw,28px) 20px;}
  #auth-view .auth-panel .tabs{margin-bottom:clamp(15px,2.2vh,21px)}
}
#auth-view .auth-box{
  border:1.25px solid rgba(164,237,255,.81);
  background:linear-gradient(136deg,rgba(5,20,47,.10),rgba(5,24,55,.14) 55%,rgba(4,21,47,.12));
  backdrop-filter:blur(2px) brightness(.84) saturate(1.09);
  -webkit-backdrop-filter:blur(2px) brightness(.84) saturate(1.09);
  box-shadow:0 0 0 1px rgba(83,170,245,.17),inset 0 0 22px rgba(71,179,248,.07),0 0 17px rgba(67,191,245,.46),0 0 42px rgba(25,95,204,.13),0 14px 39px rgba(3,8,32,.19);
}
#auth-view .auth-panel .auth-form input,
#auth-view .auth-panel .cryo-secure-row input,
#auth-view .auth-panel #invite-row input{background:rgba(8,34,75,.36);border-color:rgba(159,221,252,.65)}
#auth-view .auth-panel .tab{background:rgba(7,37,85,.13)}
#auth-view .auth-panel .tab.active{background:linear-gradient(95deg,rgba(17,123,213,.70),rgba(43,95,221,.68))}
/* Extremely wide or short displays: keep text away from the interactive card. */
@media(min-width:851px) and (max-width:1270px){
  #auth-view .intro-content{left:31vw;width:24vw}
  #auth-view .intro-content h1{font-size:clamp(27px,2.8vw,36px)}
  #auth-view .intro-content p{font-size:10px}
  #auth-view .intro-content .feature-tags{width:42vw;left:28px}
  #auth-view .auth-panel{width:34vw;right:26px}
}
@media(min-width:851px) and (max-height:710px){
  #auth-view .intro-panel .brand{top:15px}
  #auth-view .intro-content{top:18vh}
  #auth-view .intro-content h1{margin:8px 0 6px}
  #auth-view .intro-content .feature-tags{bottom:22px;padding:8px 5px}
  #auth-view .auth-panel{top:50%;bottom:auto}
}
/* Mobile uses a separate TEXT-FREE portrait crop, and the same actual form elements. */
@media(max-width:850px){
  #auth-view.auth-layout{
    --r17-mobile-header:clamp(142px,25dvh,210px);
    background-image:linear-gradient(180deg,rgba(4,13,36,.22) 0%,rgba(4,18,46,.38) 23%,#091834 60%,#06112b 100%),url('/static/cryo_login_r17_v1/shuangyin-clean-mobile-r17.webp?v=20261107-r17-01');
    background-size:cover,auto min(72vw,330px);
    background-position:center,top left 0;
    background-repeat:no-repeat;
  }
  #auth-view .intro-panel{height:var(--r17-mobile-header)}
  #auth-view .intro-panel::before,#auth-view .intro-panel::after{display:none!important}
  #auth-view .auth-panel{transform:none;flex:0 1 auto;height:auto}
  #auth-view .auth-box{height:auto;max-height:calc(100dvh - var(--r17-mobile-header) - 16px);background:rgba(5,23,55,.34);backdrop-filter:blur(4px) brightness(.80);-webkit-backdrop-filter:blur(4px) brightness(.80)}
  #auth-view .intro-content .feature-tags{display:flex}
  #auth-view .intro-content .feature-tags span{border:1px solid rgba(123,205,247,.39)}
}
@media(max-width:370px){#auth-view.auth-layout{--r17-mobile-header:clamp(132px,24dvh,174px)}}
@media(prefers-reduced-motion:reduce){#auth-view .cryo-r14-cube{display:none!important}}
