/* A living welcome: same Smile character, one immersive world. */
.signin-page{--auth-gutter:max(56px,calc((100vw - 1300px)/2));--auth-card-width:430px;position:relative;isolation:isolate;min-height:calc(100svh - 82px);display:flex;align-items:stretch;background:#061625;color:#eefbfa;overflow:hidden}
.signin-brand-panel{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none;background:var(--smile-environment)}
.signin-layout{--scene-inset:clamp(38px,6.2svh,72px);position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(315px,430px);gap:clamp(35px,7vw,140px);width:min(1300px,calc(100% - 112px));margin:0 auto;padding:var(--scene-inset) 0 35px;align-items:start;min-height:calc(100svh - 82px)}
.signin-world-copy{min-width:0;align-self:start;display:flex;flex-direction:column;justify-content:flex-end;min-height:max(320px,calc(100svh - 82px - var(--scene-inset) - 48px));padding-bottom:clamp(5px,1vh,15px);text-shadow:0 3px 24px #051522d9}
.signin-world-kicker{display:flex;align-items:center;gap:9px;color:#c1e3e2;font-size:.68rem;letter-spacing:.17em;font-weight:650;margin-bottom:16px}
.signin-world-kicker span{display:inline-block;width:22px;height:1px;background:#80d8cd;box-shadow:0 0 12px #94ffff}
.signin-world-line{font-weight:500;font-size:clamp(2rem,3.8vw,3.8rem);line-height:1.03;letter-spacing:-.055em;color:#edf7f5}
.signin-world-line em{color:#a2d4d2;font-style:italic}
.signin-world-caption{color:#b6cccf;line-height:1.6;max-width:330px;margin-top:18px;font-size:.88rem}
.signin-card{display:flex;flex-direction:column;gap:13px;min-width:0;position:relative;isolation:isolate;padding:clamp(20px,2.4vw,30px);border:1px solid var(--smile-edge);border-radius:32px 32px 24px 24px;background:var(--smile-glass);box-shadow:var(--smile-depth);color:#edf0fa}
.signin-card::before{content:"";position:absolute;inset:8px;border-radius:25px 25px 17px 17px;border:1px solid #b8b3f31a;pointer-events:none;z-index:-1}
.signin-back{display:flex;align-items:center;gap:10px;align-self:flex-start;color:#abc6cb;font-size:.82rem;font-weight:600;margin-bottom:6px;text-underline-offset:5px}
.signin-back:hover,.signin-home:hover{text-decoration:underline;color:#e0ffff}
.signin-back span{font-size:1.3rem;font-weight:400}
.signin-kicker{font-size:.68rem;letter-spacing:.19em;font-weight:700;color:#80d8d0}
.signin-card h1{font-size:clamp(2.45rem,3.4vw,3.4rem);line-height:1.05;letter-spacing:-.055em;font-weight:560;color:#f2f4ff;max-width:440px}
.signin-card h1:focus{outline:none}
.signin-intro{font-size:1rem;color:#b3cbd1;line-height:1.65;max-width:380px;min-block-size:3.3em}
.signin-actions{display:grid;gap:17px;min-width:0;align-content:start;position:relative}
.signin-mode-panel{display:grid;align-content:start;gap:17px;min-width:0;transform-origin:50% 0}
.signin-mode{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:stretch;border-bottom:1px solid #b2dad329;margin:8px 0 4px;isolation:isolate}
.signin-mode::after{content:"";position:absolute;bottom:-1px;left:0;width:50%;height:2px;pointer-events:none;background:linear-gradient(90deg,#52a6bf,#a5fae6 72%,#65bed1);box-shadow:0 0 12px #7acdd455;transform:translateX(0);transition:transform .32s cubic-bezier(.22,.72,.2,1)}
.signin-page[data-auth-mode=signup] .signin-mode::after{transform:translateX(100%)}
.signin-mode>button{padding:12px 4px 14px;background:none;color:#9eb6bd;border:0;font-size:.94rem;font-weight:650;min-height:44px;white-space:nowrap;transition:color .18s}
.signin-mode>button[aria-pressed=true]{color:#effafa}
.signin-mode>button:hover{color:#f2ffff}
.signin-methods{display:grid;gap:11px}
.signin-methods:empty{display:none}
.signin-provider{position:relative;display:flex;align-items:center;justify-content:center;gap:11px;min-height:56px;width:100%;border:1px solid #92c1c84b;border-radius:9px;padding:14px 16px;color:#e9fafa;font-size:.94rem;font-weight:650;line-height:1.4;text-align:center;transition:background .19s,transform .19s,border-color .19s;background:var(--smile-glass);box-shadow:var(--smile-depth);}
.signin-provider:hover{background:#b4e4e31e;border-color:#94d4d6}
.signin-provider:active{transform:translateY(1px)}
.signin-provider-icon{width:21px;height:21px;flex:none}
.signin-primary{color:#16152e;border:1px solid #c7c1fb;justify-content:center;padding-inline:18px;background:var(--smile-action);box-shadow:inset 0 1px #fff9,0 3px 0 #585188,0 7px 15px #090b1b80;}
.signin-primary:hover{background:#e0d6ff;color:#16152e;border-color:#e7dfff}
.signin-arrow{margin-left:auto;font-size:1.3rem;font-weight:400}
.signin-enrollment,.signin-email-form{display:grid;gap:13px}
.signin-card .field{margin:0;gap:7px}
.signin-card .field label{color:#c9ddde;font-size:.85rem;font-weight:650}
.signin-card .field input{background:#bce2df0b;color:#effaf8;border:1px solid #8cb9bb56;border-radius:9px;padding:13px 15px;min-height:54px;width:100%}
.signin-card .field input::placeholder{color:#7e9fa8}
.signin-note,.signin-error{line-height:1.65;font-size:.86rem;color:#a9c3ca;overflow-wrap:anywhere}
.signin-error{color:#ffceb9}
.signin-note:empty{display:none}
.signin-home{color:#a9e5de;font-size:.88rem;font-weight:650;align-self:flex-start}
.signin-card .button{align-self:stretch;justify-content:center}
.signin-card .button.outline{background:#b7dbd80a;border-color:#83a6ab;color:#e7f6f4}
.signin-identity{display:grid;gap:5px;overflow-wrap:anywhere;border-bottom:1px solid #abd2d239;padding:10px 0 16px}
.signin-identity small{color:#b2cbcf}
.signin-recovery{display:flex;align-items:flex-start;flex-direction:column;gap:10px}
.signin-page :focus-visible{outline-color:#b5f0dd;outline-offset:4px}
@media(min-width:721px) and (max-width:1000px){.signin-page{--auth-gutter:28px;--auth-card-width:395px}.signin-layout{width:calc(100% - 56px);grid-template-columns:minmax(0,1fr) minmax(300px,395px);gap:38px}}
@media(max-width:720px){
 .signin-page{min-height:calc(100svh - 66px)}
 .signin-layout{min-height:calc(100svh - 66px);width:min(480px,calc(100% - 42px));grid-template-columns:minmax(0,1fr);padding:0 0 35px;gap:26px;margin:0 auto;align-items:start}
 .signin-brand-panel{height:440px;bottom:auto}
 .signin-world-copy{min-height:0;padding:212px 0 0;justify-content:flex-end}
 .signin-world-kicker{font-size:.58rem;letter-spacing:.11em;margin-bottom:12px}
 .signin-world-line{font-size:clamp(1.6rem,5.7vw,2.15rem)}
 .signin-world-caption{font-size:.78rem;max-width:225px;margin-top:10px}
 .signin-card{gap:14px}
 .signin-card h1{font-size:clamp(2rem,8vw,2.7rem)}
 .signin-back{margin-bottom:3px}
 .signin-mode{margin-top:7px}
 .signin-intro{font-size:.94rem}
}
@media(max-width:360px){.signin-layout{width:calc(100% - 32px)}.signin-provider{padding-inline:12px;font-size:.88rem}.signin-world-copy{padding-top:190px}.signin-brand-panel{height:402px}}
/* Full-world atmosphere, physical projection plinth, and the shared character. */
.smile-threshold{position:absolute;inset:0;pointer-events:none;overflow:hidden;isolation:isolate}
.auth-atmosphere{position:absolute;inset:0;background:radial-gradient(ellipse at 30% 38%,#327cb230,transparent 43%),radial-gradient(ellipse at 25% 75%,#0a6b9e2b,transparent 39%),linear-gradient(125deg,#11345055,transparent 72%);pointer-events:none}
.auth-horizon{position:absolute;left:-12%;top:48%;width:89%;height:60%;transform:perspective(350px) rotateX(53deg);transform-origin:50% 5%;background:linear-gradient(#4b9fc016 1px,transparent 1px),linear-gradient(90deg,#4b9fc016 1px,transparent 1px);background-size:60px 47px;mask-image:radial-gradient(ellipse at 52% 17%,#000 1%,#0009 28%,transparent 70%);opacity:.8}
.auth-light-sweep{position:absolute;z-index:1;inset:0 35% 0 0;background:linear-gradient(115deg,transparent 29%,#7ce8ff2f 47%,transparent 63%);opacity:0;pointer-events:none}
.auth-face-host{position:absolute;z-index:2;left:0;top:0;width:min(60vw,900px,calc(100vw - var(--auth-gutter,56px) - var(--auth-card-width,430px) - 30px));height:min(calc((100svh - 82px)*.72),650px);margin-left:clamp(0px,1.2vw,24px);overflow:visible}
.auth-face-host .face-stage{width:100%;height:100%;max-width:none;aspect-ratio:auto;background:none;margin:0;overflow:visible}
.auth-face-host .face-plane{position:absolute;inset:0}
.auth-face-host .face-renderer,.auth-face-host .face-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.smile-threshold::after{content:"";position:absolute;z-index:3;inset:0;background:linear-gradient(90deg,transparent 47%,#0616259c 67%,#061625 100%),linear-gradient(0deg,#061625 0%,#061625a0 12%,#0616250d 25%,transparent 40%);pointer-events:none}
@media(min-width:721px) and (max-height:740px){.auth-face-host{height:calc((100svh - 82px)*.66);top:0}.signin-world-copy{padding-bottom:0}.signin-layout{--scene-inset:28px;padding-bottom:32px}.signin-card{gap:13px}.signin-card h1{font-size:clamp(2.65rem,4.1vw,4rem)}.signin-back{margin-bottom:12px}}
@media(max-width:720px){.auth-face-host{margin:0;left:0;top:-8px;width:100%;height:215px}.auth-horizon{top:23%;height:42%;left:-22%;width:144%}.auth-atmosphere{background:radial-gradient(ellipse at 50% 30%,#514b9c36,transparent 63%)}.smile-threshold::after{background:linear-gradient(0deg,#061625 0%,#0616258a 23%,transparent 67%)}}
@media(max-width:360px){.auth-face-host{height:193px;top:-5px}}
@media(prefers-reduced-motion:reduce){.signin-mode::after,.signin-mode>button{transition:none}}

/* During the optical passage the existing renderer draws into a full viewport
   buffer. The projection moves inside that buffer; CSS does not zoom the avatar. */
.smile-optical-passage{position:fixed;inset:0;z-index:2000;overflow:hidden;isolation:isolate;background:rgba(6,22,37,var(--flight-shade,0));touch-action:none;overscroll-behavior:contain;pointer-events:auto}
.smile-optical-surface{position:absolute;inset:0;overflow:hidden}
.auth-flight-world{position:absolute;inset:0;overflow:hidden}
.auth-flight-world .auth-face-host{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0}
.auth-flight-world .auth-face-host .face-stage{width:100%;height:100%;max-width:none;aspect-ratio:auto}
.auth-flight-world .auth-face-host .face-renderer{display:block;width:100%;height:100%}
.auth-flight-world::after{opacity:calc(1 - var(--flight-progress,0))}
.auth-flight-world .auth-atmosphere,.auth-flight-world .auth-horizon{opacity:calc(1 - var(--flight-progress,0))}
.smile-optical-frame{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:fill;will-change:transform}
.auth-arrival-prism{position:absolute;inset:-18%;opacity:0;pointer-events:none;background:radial-gradient(ellipse at 56% 43%,#9167dc36,transparent 50%),radial-gradient(ellipse at 26% 35%,#1fabc956,transparent 37%),radial-gradient(ellipse at 76% 65%,#ed9f7052,transparent 31%);will-change:transform,opacity}
/* Departure optics expand within the available public world, from the original
   portrait viewport to a larger optical stage. Credentials stay in normal flow. */
.auth-departure-veil{position:fixed;inset:0;z-index:1800;pointer-events:auto;overflow:hidden;isolation:isolate;opacity:0;background:radial-gradient(ellipse at 50% 32%,#214c6259 0%,#0c1a348c 45%,#060b1cea 100%),linear-gradient(125deg,#241b4c78,#07213e87 52%,#2a1a4078);will-change:opacity}
.auth-departure-veil i{position:absolute;inset:-35%;pointer-events:none;will-change:opacity,transform}
.departure-veil-spectrum{background:conic-gradient(from 180deg at 37% 45%,transparent 0deg,#65daee35 50deg,#b592fb55 73deg,transparent 107deg,transparent 180deg,#e7a7864d 231deg,#ffdcb539 249deg,transparent 282deg);mask-image:radial-gradient(ellipse at 37% 45%,transparent 14%,#000 42%,#0007 58%,transparent 78%);mix-blend-mode:screen}
.departure-veil-light{background:radial-gradient(ellipse at 37% 43%,transparent 25%,#ab8bf721 30%,#9bd9f24b 33%,#ecbd9160 35%,#8aa9eb26 37%,transparent 49%);transform-origin:37% 43%;mix-blend-mode:screen}
.departure-veil-orbit{inset:-42%!important;opacity:0;border-radius:50%;background:conic-gradient(from 32deg,#8ae4eb00 0deg,#6de5fa3c 37deg,#b394fe7a 48deg,transparent 71deg,transparent 142deg,#ffd7a350 156deg,#efadca5f 165deg,transparent 181deg,transparent 271deg,#7be1ea42 293deg,transparent 310deg);mask-image:radial-gradient(ellipse at 50% 44%,transparent 22%,#000 40%,#0004 48%,transparent 62%);transform-origin:center;mix-blend-mode:screen}
.auth-farewell{position:absolute;z-index:4;left:50%;bottom:clamp(30px,11vh,142px);width:min(660px,calc(100% - 40px));display:flex;flex-direction:column;align-items:center;gap:13px;text-align:center;transform:translate3d(0,24px,0);opacity:0;text-shadow:0 4px 35px #060f22;pointer-events:none}
.auth-farewell-brand{font-size:clamp(1.8rem,2.8vw,3.4rem);line-height:1;letter-spacing:-.09em;font-weight:790;color:#eafaff;filter:drop-shadow(0 0 19px #8aafff7a)}
.auth-farewell-brand span{color:#b8a9ff}
.auth-farewell strong{font-size:clamp(2.1rem,5vw,5.4rem);font-weight:720;line-height:1.08;letter-spacing:-.06em;background:linear-gradient(105deg,#b8fff4 0%,#f5e4ff 42%,#ffe0ad 76%,#c3ccff 100%);background-clip:text;-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 0 15px #a7b9fd36)}
.auth-farewell-subtitle{font-size:clamp(.82rem,1.6vw,1.05rem);line-height:1.65;color:#d4e8fa;letter-spacing:.015em}
.auth-farewell-sparkles{position:absolute;inset:-45% -15% -25%;pointer-events:none}
.auth-farewell-sparkles i{position:absolute;width:9px;height:9px;display:block;border-radius:100%;background:radial-gradient(circle at 36% 34%,#fff,#94f5f7 46%,#628aff00 76%);box-shadow:0 0 18px #91caff;animation:auth-farewell-mote 3.2s ease-in-out both;opacity:0}
.auth-farewell-sparkles i:nth-child(1){top:25%;left:9%;animation-delay:.16s;--travel:-24px;--x:15px}
.auth-farewell-sparkles i:nth-child(2){top:8%;left:78%;width:13px;height:13px;animation-delay:.58s;--travel:-38px;--x:-17px;background:radial-gradient(circle at 30% 30%,#fff,#c6a7ff 50%,#8169ff00 76%);box-shadow:0 0 20px #c6a7ff}
.auth-farewell-sparkles i:nth-child(3){top:72%;left:94%;animation-delay:.92s;--travel:-22px;--x:-14px;background:radial-gradient(circle at 30% 30%,#fff,#ffdb9e 46%,#ffd08500 76%);box-shadow:0 0 17px #ffc18e}
.auth-farewell-sparkles i:nth-child(4){top:78%;left:21%;width:12px;height:12px;animation-delay:1.4s;--travel:-32px;--x:21px}
.auth-farewell-sparkles i:nth-child(5){top:34%;left:62%;width:6px;height:6px;animation-delay:1.85s;--travel:-22px;--x:-5px;background:#ffcfdf;box-shadow:0 0 14px #ffd4ff}
@keyframes auth-farewell-mote{0%{opacity:0;transform:translate3d(0,16px,0) scale(.28)}21%{opacity:.9;transform:translate3d(var(--x),0,0) scale(1.2)}58%{opacity:.68;transform:translate3d(calc(var(--x)*.65),var(--travel),0) scale(.85)}100%{opacity:0;transform:translate3d(calc(var(--x)*1.3),calc(var(--travel)*1.9),0) scale(.2)}}
/* A public farewell owned by the real logout, not by the new sign-in canvas.
   Fully opaque while account-owned DOM is replaced underneath. */
.auth-departure-veil.auth-departure-presentation{opacity:1;display:block;z-index:2200;background:radial-gradient(ellipse at 49% 38%,#244565 0%,#111b40 45%,#080f25 78%,#080d1d 100%);user-select:none}
.auth-departure-presentation .departure-veil-spectrum,.auth-departure-presentation .departure-veil-light,.auth-departure-presentation .departure-veil-orbit{inset:-34%;z-index:0}
.farewell-character{position:absolute;z-index:3;top:clamp(8%,12vh,18%);left:50%;width:min(42vw,270px);aspect-ratio:1;transform:translateX(-50%);transform-origin:50% 50%;filter:drop-shadow(0 18px 50px #090a2fb3)}
.farewell-character-halo{position:absolute;inset:-18%;border-radius:50%;background:conic-gradient(from 30deg,#6be8e300,#5af1fa59 50deg,#8d89f98b 83deg,transparent 118deg,#ffce9b79 191deg,#bd84fc6e 228deg,transparent 291deg,#67dfeb77 319deg,#6be8e300);filter:blur(12px);mask-image:radial-gradient(circle,transparent 34%,#000 56%,transparent 72%)}
.farewell-character .face-stage{position:relative;width:100%;height:100%;aspect-ratio:1;max-width:none;background:none;overflow:visible}
.farewell-character .smile-living-presence{width:100%;height:100%;display:block;background:transparent}
.farewell-character .smile-living-presence .presence-progress{display:none}
.farewell-character .face-plane{position:absolute;inset:0}
.farewell-character .face-renderer,.farewell-character .face-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.auth-departure-presentation .auth-farewell{bottom:clamp(32px,8vh,100px);z-index:4;transform:translateX(-50%)}
.auth-departure-skip{position:absolute;z-index:8;right:clamp(14px,3vw,48px);top:clamp(14px,3vh,35px);font-family:inherit;font-size:.84rem;font-weight:600;line-height:1.1;color:#e9f8ff;background:#c1dcff0e;border:1px solid #b4dbf17a;border-radius:999px;min-height:43px;padding:12px 23px;cursor:pointer}
.auth-departure-skip:hover{background:#abcdfc2a}
.auth-departure-skip:focus-visible{outline:3px solid #a3edfa;outline-offset:3px}
.auth-departure-presentation .auth-farewell-sparkles{animation:none}
.auth-departure-presentation.auth-departure-reduced{background:#0d1934}
.auth-departure-reduced .farewell-character{top:14%;width:min(37vw,225px);transform:translateX(-50%);filter:drop-shadow(0 9px 25px #10143588)}
.auth-departure-reduced .auth-farewell{opacity:1;transform:translateX(-50%)}
.auth-departure-reduced .auth-farewell-sparkles,.auth-departure-reduced .departure-veil-spectrum,.auth-departure-reduced .departure-veil-light,.auth-departure-reduced .departure-veil-orbit{display:none}
@media(max-width:720px){.farewell-character{top:15%;width:min(58vw,230px)}.auth-departure-presentation .auth-farewell{bottom:clamp(45px,13vh,116px)}}
@media(prefers-reduced-motion:reduce){.auth-departure-presentation,.auth-departure-presentation *{animation:none!important;transition:none!important}}

/* A deliberate credential instrument within the existing living threshold.
   Fill hierarchy, field focus and the single primary action carry the work;
   alternate methods live behind a compact, accessible disclosure. */
.signin-password-form{display:grid;gap:13px;min-width:0;align-content:start}
.signin-password-form .field{gap:6px}
.signin-password-form .field input{min-height:53px;padding:13px 14px;background:var(--smile-inset);box-shadow:var(--smile-recess);border-color:#8992c76b;transition:border-color .18s,background .18s,box-shadow .18s}
.signin-password-form .field input:focus{border-color:#b5a8ff;background:var(--smile-inset);box-shadow:var(--smile-recess),0 0 0 3px #aa8ff324;outline:none}
.signin-password-form .field input:focus-visible{outline:1px solid #a5e2d8;outline-offset:2px}
.signin-password-form .field input:autofill{color-scheme:dark}
.signin-secret-input{position:relative;display:flex;align-items:stretch;min-width:0}
.signin-password-form .field .signin-secret-input input{padding-inline-end:72px;min-width:0}
.signin-secret-input input::-ms-reveal{display:none}
.signin-password-visibility{position:absolute;inset-block:5px;right:5px;min-width:61px;padding:0 8px;border:0;border-left:1px solid #a8d3d52b;background:#bedbd50b;border-radius:5px;color:#d4eae6;font:inherit;font-size:.77rem;font-weight:650;cursor:pointer}
.signin-password-visibility:hover{background:#a8ddd822;color:#f3ffff}
.signin-password-visibility[aria-pressed=true]{color:#a6e5db}
.signin-password-form .signin-primary{margin-top:3px}
.signin-password-form .signin-primary:disabled,.signin-enrollment .signin-provider:disabled{opacity:.63;cursor:wait;transform:none}
.signin-password-form .signin-note{font-size:.78rem;line-height:1.5}
.signin-alternatives{border-top:1px solid #b2dad32e;min-width:0}
.signin-alternatives summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:44px;padding:9px 0;color:#c3dedc;font-size:.86rem;font-weight:620;cursor:pointer}
.signin-alternatives summary::-webkit-details-marker{display:none}
.signin-alternatives summary:hover{color:#f0ffff}
.signin-alternatives summary>span{font-size:1.25rem;font-weight:400;color:#8dc9c4;transition:transform .18s}
.signin-alternatives[open] summary>span{transform:rotate(45deg)}
.signin-alternatives-body{display:grid;gap:13px;padding:7px 0 13px}
.signin-alternatives-body .signin-provider{min-height:48px;padding:11px 14px}
.signin-native-note{font-size:.77rem;line-height:1.5;margin-top:-3px}
.signin-feedback:not(:empty){padding:11px 14px;border-left:2px solid #78c8c5;background:#c4e5df0a;border-radius:0 6px 6px 0}
.signin-feedback[role=alert]{border-color:#f5b7a2;color:#ffceb9}
@media(prefers-reduced-motion:reduce){.signin-password-form .field input,.signin-alternatives summary>span{transition:none}}
