/* Isolated authentication presentation. */
html:has(body.auth-active){height:auto!important;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important;background:#07050d}
body.auth-active{--ink:#19191d;--muted:#74747c;background:#07050d url('/login-ribbons.svg') center/cover fixed!important;color:#19191d!important;font-family:'DM Sans',system-ui,sans-serif!important;position:relative!important;inset:auto!important;height:auto!important;min-height:100vh;min-height:100dvh;overflow-x:hidden!important;overflow-y:auto!important;margin:0}
body.auth-active #authView.auth-shell{box-sizing:border-box;position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:1fr 1fr;gap:0!important;align-items:stretch!important;width:calc(100% - 64px);max-width:1440px;min-height:calc(100dvh - 64px);height:auto!important;max-height:none!important;margin:32px auto;padding:6px!important;border-radius:32px;background:#fff!important;overflow:hidden!important;box-shadow:0 24px 90px #0004}
body.auth-active .auth-brand{position:relative!important;display:flex!important;flex-direction:column;justify-content:flex-end;align-self:stretch;min-height:650px;padding:48px 38px!important;border:0!important;border-radius:27px;background:#06040c url('/login-ribbons.svg') center/cover!important;isolation:isolate;color:#fff!important;overflow:hidden}
body.auth-active .auth-brand:before{content:'';position:absolute;inset:0;background:linear-gradient(transparent 40%,#03020ac9 100%);z-index:-1}body.auth-active .auth-brand:after{display:none!important}
body.auth-active .auth-wordmark,body.auth-active .auth-feature-intro,body.auth-active .auth-foot{display:none!important}
body.auth-active .auth-brand .eyebrow{position:absolute;top:38px;left:38px;font:500 10px/1.5 'DM Sans',sans-serif;letter-spacing:2px;color:#fff!important}
body.auth-active .auth-brand h1{font:400 clamp(44px,4.8vw,72px)/.99 Georgia,serif!important;letter-spacing:-2px;color:#fff!important;margin:0 0 22px!important;max-width:430px}
body.auth-active .auth-gold-text{color:#fff!important}body.auth-active .auth-brand>p{font:400 13px/1.8 'DM Sans',sans-serif;color:#dedbe6!important;margin:0;max-width:340px}
body.auth-active .auth-panel-track{position:relative!important;display:flex!important;align-items:center;justify-content:center;align-self:stretch;width:100%!important;min-width:0;max-width:none;max-height:none!important;height:auto!important;margin:0!important;padding:36px 32px!important;overflow:visible!important;box-sizing:border-box}
body.auth-active .auth-panel-track>.auth-panel{position:relative!important;width:100%!important;max-width:360px!important;min-width:0;min-height:0!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;color:#19191d!important;transform:none!important;transition:none!important;overflow:visible!important;filter:none!important}
body.auth-active .auth-panel-track>.auth-panel.hidden,body.auth-active.device-limit-active .auth-panel-track>.auth-panel:first-child{display:none!important}
body.auth-active .auth-mobile-mark{display:flex!important;align-items:center;justify-content:center;gap:8px;margin:0 0 54px;font:700 16px/1.2 'DM Sans',sans-serif;color:#19191d!important}
body.auth-active .auth-mobile-mark img{width:44px;height:40px;object-fit:contain}body.auth-active .auth-mobile-mark span{color:#19191d!important}body.auth-active .auth-mobile-mark small{display:block;font:500 8px/1.4 'DM Sans',sans-serif;letter-spacing:2px;color:#777!important;margin-top:4px}
body.auth-active .panel-kicker{display:none!important}body.auth-active #authTitle{font:400 38px/1.15 Georgia,serif!important;letter-spacing:-1.3px;color:#151518!important;text-align:center;margin:0 0 10px!important}body.auth-active #authHint{font:400 12px/1.6 'DM Sans',sans-serif!important;color:#74747c!important;text-align:center;margin:0 0 32px!important}
body.auth-active #authForm{display:grid;gap:19px;margin:0}body.auth-active #authForm label{display:grid;gap:7px;font:500 12px/1.4 'DM Sans',sans-serif!important;color:#34343b!important;letter-spacing:0;margin:0}
body.auth-active #authForm input{box-sizing:border-box;width:100%;min-width:0;height:45px;min-height:45px;border:1px solid transparent!important;border-radius:9px!important;background:#f4f5f8!important;color:#202027!important;-webkit-text-fill-color:#202027!important;padding:12px 14px!important;font:400 14px/1.4 'DM Sans',sans-serif!important;margin:0!important;box-shadow:none!important;outline:none}body.auth-active #authForm input::placeholder{color:#909097!important;-webkit-text-fill-color:#909097!important;opacity:1}body.auth-active #authForm input:focus{border-color:#837397!important;box-shadow:0 0 0 3px #8150a212!important}
body.auth-active #authSubmit.button.primary{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;height:45px;min-height:45px;padding:10px 14px!important;margin:6px 0 0!important;background:#111114!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;border-radius:9px!important;box-shadow:none!important;font:500 13px/1.4 'DM Sans',sans-serif!important;transform:none!important}body.auth-active #authSubmit.button.primary span{color:#fff!important;-webkit-text-fill-color:#fff!important}body.auth-active #authSubmit.button.primary:after{display:none!important}body.auth-active #authSubmit.button.primary:hover{background:#303036!important}
body.auth-active .auth-switch{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px;margin:24px 0 0;font-size:11px;color:#75757d!important}body.auth-active #authSwitch,body.auth-active #forgotPassword{width:auto;background:none!important;border:0;color:#22222a!important;font:500 11px/1.5 'DM Sans',sans-serif!important;min-height:28px;padding:2px!important;margin:0}body.auth-active #forgotPassword{display:block;margin:7px auto 0}
body.auth-active .auth-device-desktop{display:none!important}body.auth-active .auth-feature-mobile{display:block!important;border-top:1px solid #eeeeef;padding-top:16px;margin-top:24px;color:#777!important}body.auth-active .auth-feature-mobile summary{font-size:11px;cursor:pointer;color:#74747c!important}body.auth-active .auth-feature-list{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0;padding:0;list-style:none}body.auth-active .auth-feature-list li{display:block}body.auth-active .auth-feature-list li>span{display:none}body.auth-active .auth-feature-list b{font-size:11px;color:#34343b!important}body.auth-active .auth-feature-mobile p{font-size:11px;line-height:1.7;color:#777!important}body.auth-active .auth-device-mobile{display:flex;gap:8px;font-size:11px;line-height:1.6;margin:12px 0;color:#777!important;background:#f5f5f7!important;padding:10px;border-radius:8px}body.auth-active .auth-feature-mobile:not([open]) .auth-device-mobile{display:none!important}
body.auth-active .auth-support-footer{display:flex;justify-content:space-between;gap:10px;margin-top:16px;font-size:9px;color:#909097!important}body.auth-active .auth-support-footer a{font-size:10px;color:#52525c!important;text-decoration:none}
body.auth-active .register-name-fields{grid-template-columns:1fr 1fr;gap:10px}body.auth-active #telegramSignupFields:not(.hidden){display:grid;gap:16px}body.auth-active .telegram-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}body.auth-active #getTelegramSignupCode{height:45px;min-height:45px;padding:8px 12px;background:#eeedf3!important;color:#34303e!important;border:0;border-radius:8px;font-size:12px;white-space:nowrap}body.auth-active #telegramSignupStatus{font-size:11px;line-height:1.6;color:#777!important;margin:0}body.auth-active #authError:empty{display:none}body.auth-active #authError{font-size:12px;color:#b63a45;margin:12px 0}body.auth-active.register-mode .auth-mobile-mark{margin-bottom:24px}body.auth-active.register-mode #authHint{margin-bottom:22px!important}body.auth-active #deviceLimitView .device-limit-card h1{color:#19191d;font-size:27px}
body.auth-active #authView *,body.auth-active #authView *:before,body.auth-active #authView *:after{text-shadow:none!important;box-sizing:border-box}
@media(min-width:900px) and (max-height:800px){body.auth-active #authView.auth-shell{min-height:calc(100dvh - 40px);margin:20px auto;width:calc(100% - 40px)}body.auth-active .auth-brand{min-height:540px}body.auth-active .auth-mobile-mark{margin-bottom:30px}body.auth-active .auth-panel-track{padding:24px 32px!important}}
@media(max-width:899px){body.auth-active #authView.auth-shell{display:block!important;width:calc(100% - 48px);max-width:530px;min-height:0;margin:32px auto;padding:0!important;border-radius:26px}body.auth-active .auth-brand{display:none!important}body.auth-active .auth-panel-track{padding:38px 42px!important;min-height:calc(100dvh - 64px)}body.auth-active .auth-mobile-mark{margin-bottom:44px}body.auth-active.register-mode .auth-panel-track{min-height:0}}
@media(max-width:520px){body.auth-active #authView.auth-shell{width:calc(100% - 28px);margin:14px auto;border-radius:22px}body.auth-active .auth-panel-track{padding:28px 24px!important;min-height:calc(100dvh - 28px)}body.auth-active .auth-mobile-mark{margin-bottom:32px}body.auth-active #authTitle{font-size:33px!important}body.auth-active #authHint{margin-bottom:26px!important}body.auth-active #authForm input{font-size:16px!important}body.auth-active .auth-switch{font-size:11px}body.auth-active .auth-feature-mobile{margin-top:20px}}
@media(max-width:899px) and (max-height:680px){body.auth-active .auth-panel-track{padding:22px!important}body.auth-active .auth-mobile-mark{margin-bottom:20px}body.auth-active #authTitle{font-size:29px!important}body.auth-active #authHint{margin-bottom:20px!important}body.auth-active #authForm{gap:14px}body.auth-active .auth-switch{margin-top:15px}body.auth-active .auth-feature-mobile{margin-top:15px;padding-top:12px}body.auth-active .auth-support-footer{margin-top:12px}}
@media(prefers-reduced-motion:reduce){body.auth-active *{scroll-behavior:auto!important}}

@media(max-width:899px) and (max-height:680px){body.auth-active:not(.register-mode) .auth-panel-track{padding:18px 22px!important}body.auth-active:not(.register-mode) .auth-mobile-mark{margin-bottom:12px}body.auth-active:not(.register-mode) #authHint{margin-bottom:16px!important}body.auth-active:not(.register-mode) .auth-switch{margin-top:10px}body.auth-active:not(.register-mode) .auth-feature-mobile{margin-top:10px;padding-top:10px}body.auth-active:not(.register-mode) .auth-support-footer{margin-top:10px}body.auth-active:not(.register-mode) #forgotPassword{margin-top:3px}}

/* Study tools carousel: artwork and copy change together without shifting the form. */
body.auth-active .auth-tool-carousel{padding:0!important;background:#090714!important;min-height:650px}
body.auth-active .auth-tool-carousel:before{display:none}body.auth-active .auth-tool-carousel .eyebrow{z-index:3}
.auth-tool-slides{position:absolute;inset:0}.auth-tool-slide{position:absolute;inset:0;display:flex;align-items:flex-end;padding:40px 38px 88px;background-image:linear-gradient(transparent 35%,#080611f2 100%),var(--slide-art);background-size:cover;background-position:center;opacity:0;visibility:hidden;transform:translateX(18px);transition:opacity .55s ease,transform .55s ease,visibility .55s;pointer-events:none}
.auth-tool-slide.is-active{opacity:1;visibility:visible;transform:translateX(0)}.auth-tool-slide>div{width:100%}.auth-tool-slide span{font-size:9px;letter-spacing:2px;color:#ded5ef}
body.auth-active .auth-tool-slide h1{font-size:clamp(36px,4.4vw,64px)!important;line-height:1.05!important;margin:16px 0!important;letter-spacing:-1.7px}
body.auth-active .auth-tool-slide p{font:400 13px/1.8 'DM Sans',sans-serif;color:#ddd7e7!important;max-width:340px;margin:0}
.auth-tool-controls{position:absolute;z-index:4;bottom:28px;left:38px;right:38px;display:flex;justify-content:space-between;align-items:center}.auth-tool-dots{display:flex;gap:8px}.auth-tool-dots button{width:18px;height:5px;min-height:0;padding:0;border:0;border-radius:5px;background:#ffffff55;cursor:pointer}.auth-tool-dots button[aria-pressed=true]{width:36px;background:#fff}.auth-tool-pause{background:#ffffff12;border:1px solid #ffffff40;color:white;border-radius:50%;width:30px;height:30px;padding:0;font-size:12px;cursor:pointer}.auth-tool-controls button:focus-visible{outline:2px solid white;outline-offset:4px}
@media(min-width:768px) and (max-width:899px){body.auth-active #authView.auth-shell{display:grid!important;grid-template-columns:.9fr 1fr;max-width:1100px;width:calc(100% - 36px);min-height:calc(100dvh - 36px);margin:18px auto;padding:6px!important}body.auth-active .auth-tool-carousel{display:flex!important;min-height:600px}body.auth-active .auth-panel-track{padding:30px 24px!important;min-height:0}body.auth-active .auth-tool-slide{padding:30px 24px 80px}body.auth-active .auth-tool-slide h1{font-size:39px!important}.auth-tool-controls{left:24px;right:24px}body.auth-active .auth-tool-carousel .eyebrow{left:24px;font-size:8px}body.auth-active .auth-mobile-mark{margin-bottom:30px}}
@media(min-width:900px) and (max-height:800px){body.auth-active .auth-tool-carousel{min-height:540px}}
@media(prefers-reduced-motion:reduce){.auth-tool-slide{transition:none;transform:none}}

/* A compact, horizontal version of the study carousel for phones. */
@media(max-width:767px){
 body.auth-active #authView.auth-shell{padding:5px!important}
 body.auth-active .auth-tool-carousel{display:flex!important;min-height:158px;height:158px;border-radius:18px!important;flex-shrink:0}
 body.auth-active .auth-tool-carousel .eyebrow{display:none!important}
 body.auth-active .auth-tool-slide{padding:20px 20px 36px;background-size:100% 100%,48% auto;background-repeat:no-repeat;background-position:center,right 32%;background-color:#100b20}
 body.auth-active .auth-tool-slide:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#090714e8 15%,#090714a8 52%,transparent);pointer-events:none}
 body.auth-active .auth-tool-slide>div{position:relative;max-width:76%}
 body.auth-active .auth-tool-slide span{font-size:7px;letter-spacing:1.2px}
 body.auth-active .auth-tool-slide h1{font:400 25px/1.04 Georgia,serif!important;letter-spacing:-.6px;margin:7px 0!important;max-width:none}
 body.auth-active .auth-tool-slide h1 br{display:none}
 body.auth-active .auth-tool-slide p{font-size:10px;line-height:1.5;max-width:240px}
 body.auth-active .auth-tool-controls{bottom:10px;left:20px;right:14px;height:20px}
 body.auth-active .auth-tool-dots{gap:6px}.auth-tool-dots button{height:4px}
 body.auth-active .auth-tool-pause{height:24px;width:24px;font-size:10px}
 body.auth-active .auth-panel-track{min-height:0;padding:23px 23px 20px!important}
 body.auth-active .auth-mobile-mark{margin-bottom:18px;font-size:14px}
 body.auth-active .auth-mobile-mark img{height:30px;width:35px}
 body.auth-active #authTitle{font-size:29px!important}
 body.auth-active #authHint{margin-bottom:20px!important}
 body.auth-active #authForm{gap:14px}
 body.auth-active .auth-switch{margin-top:14px}
 body.auth-active .auth-feature-mobile{margin-top:15px;padding-top:12px}
 body.auth-active .auth-support-footer{margin-top:12px}
}
@media(max-width:767px) and (max-height:700px){
 body.auth-active .auth-tool-carousel{min-height:112px;height:112px}
 body.auth-active .auth-tool-slide{padding:12px 16px 29px}
 body.auth-active .auth-tool-slide h1{font-size:23px!important;margin:5px 0!important}
 body.auth-active .auth-tool-slide p{display:none}
 body.auth-active .auth-tool-controls{left:16px;bottom:7px}
 body.auth-active:not(.register-mode) .auth-panel-track{padding:16px 18px!important}
 body.auth-active:not(.register-mode) .auth-mobile-mark{display:none!important}
 body.auth-active:not(.register-mode) #authTitle{font-size:27px!important}
 body.auth-active:not(.register-mode) #authHint{margin-bottom:12px!important}
 body.auth-active:not(.register-mode) #authForm{gap:10px}
 body.auth-active:not(.register-mode) #authForm input{height:42px;min-height:42px}
 body.auth-active:not(.register-mode) .auth-switch{margin-top:8px}
 body.auth-active:not(.register-mode) .auth-feature-mobile{margin-top:8px;padding-top:8px}
 body.auth-active:not(.register-mode) .auth-support-footer{margin-top:8px}
}

@media(max-width:767px){body.auth-active .auth-tool-slide h1 br{display:inline}body.auth-active .auth-tool-slide h1 br:after{content:' '}}

/* Brand watermark behind the authentication card. */
body.auth-active:before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:linear-gradient(135deg,#050710b3,#19082788),url('/yourwish-q-logo.png') center/ min(76vw,950px) auto no-repeat;opacity:.74}
body.auth-active #authView.auth-shell{z-index:1}
@media(max-width:767px){body.auth-active:before{background-size:auto,125vw auto;background-position:center,center 20%;opacity:.62}}

/* Sign-in uses the document as its single vertical scroll surface. */
html:has(body.auth-active){height:auto!important;min-height:100%!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;touch-action:auto!important;-webkit-overflow-scrolling:touch}
body.auth-active{position:relative!important;inset:auto!important;height:auto!important;min-height:100vh!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;touch-action:auto!important;padding-bottom:env(safe-area-inset-bottom,0px)}
body.auth-active #authView.auth-shell{height:auto!important;max-height:none!important;overflow:visible!important;touch-action:auto!important;overscroll-behavior:auto!important}
body.auth-active #authPanelTrack.auth-panel-track,body.auth-active .auth-panel-track>.auth-panel{height:auto!important;max-height:none!important;overflow:visible!important;touch-action:auto!important;overscroll-behavior:auto!important}
body.auth-active .auth-tool-carousel{overflow:hidden!important}
/* Device-session confirmation uses the same white surface as sign-in. */
body.auth-active #deviceLimitView{color:#262630!important;background:#fff!important}
body.auth-active #deviceLimitView .device-limit-card{color:#262630!important}
body.auth-active #deviceLimitView .device-limit-card h1{color:#19191d!important;font-size:clamp(25px,3vw,34px);line-height:1.15}
body.auth-active #deviceLimitView :is(.device-limit-lead,.device-limit-copy){color:#5b5b67!important;font-size:13px;line-height:1.6}
body.auth-active #deviceLimitView .device-limit-kicker{color:#796021!important}
body.auth-active #deviceLimitView .device-limit-list{display:grid;gap:10px;margin:18px 0}
body.auth-active #deviceLimitView .device-limit-list li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;color:#30303b!important;background:#f5f5f8!important;border:1px solid #e3e3e9!important;border-radius:10px;padding:12px;font-size:13px;opacity:1!important}
body.auth-active #deviceLimitView .login-device-name{color:#30303b!important;font-weight:600;overflow-wrap:anywhere;opacity:1!important}
body.auth-active #deviceLimitView :is(.device-session-icon,.device-limit-icon){color:#61527b!important;background:#eeeaf5!important}
body.auth-active #deviceLimitView .device-limit-signout{color:#584775!important;background:#eeeaf5!important;border:1px solid #d7cee5!important;font-size:12px;min-height:40px;padding:8px 12px}
body.auth-active #deviceLimitView .device-limit-notice{background:#f3f3f7!important;border:1px solid #e2e2e9!important;color:#555563!important}
body.auth-active #deviceLimitView .device-limit-notice p{color:#555563!important;font-size:12px;line-height:1.5}
body.auth-active #deviceLimitView .device-takeover-button{background:#202027!important;color:#fff!important;border:1px solid #202027!important;min-height:46px;white-space:normal;line-height:1.4}
body.auth-active #deviceLimitView .device-cancel-button{color:#51515e!important;background:#f1f1f5!important;border:1px solid #dcdce5!important;min-height:42px}
body.auth-active #deviceLimitView .form-error{color:#ad253b!important}
