[hidden]{display:none!important}*{box-sizing:border-box}html{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif}body{margin:0;min-height:100vh;background:#f7f8fc;color:#222948;overflow-x:hidden}.auth-scene{position:fixed;inset:0;z-index:-1;overflow:hidden;background:radial-gradient(circle at 62% 12%,#eff3ff 0,transparent 38%),#f7f8fc}.glow{position:absolute;display:block;border-radius:50%;filter:blur(3px);opacity:.75;animation:drift 14s ease-in-out infinite alternate}.glow-one{width:42vw;height:42vw;left:-16vw;top:-18vw;background:#cbd5ff}.glow-two{width:35vw;height:35vw;right:-10vw;bottom:-18vw;background:#d5f0e9;animation-delay:-5s}.glow-three{width:17vw;height:17vw;right:30vw;top:3vw;background:#f7e6d8;animation-delay:-8s}@keyframes drift{to{transform:translate(3vw,4vw) scale(1.08)}}.auth-layout{display:grid;grid-template-columns:minmax(420px,1.02fr) minmax(440px,.98fr);min-height:100vh;padding:24px;gap:24px}.story{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:32px;color:white;padding:40px 48px;background:linear-gradient(145deg,#202d5e 0%,#4f5eb4 54%,#75b5ad 130%);box-shadow:0 24px 70px #4550a132}.story:before,.story:after{content:"";position:absolute;border-radius:50%;border:1px solid #ffffff33}.story:before{width:600px;height:600px;left:-200px;bottom:-330px}.story:after{width:470px;height:470px;right:-210px;top:-170px}.story-brand{display:flex;align-items:center;gap:13px;position:relative;z-index:1;font-size:24px;font-weight:800;letter-spacing:.04em}.story-brand small{display:block;font-size:10px;font-weight:600;letter-spacing:.28em;opacity:.62;margin-top:2px}.brand-icon{display:grid;place-items:center;width:47px;height:47px;border-radius:14px;background:linear-gradient(135deg,#8d8bff,#70c7b3);box-shadow:0 9px 25px #101b5066}.story-copy{position:relative;z-index:1;margin-top:min(12vh,115px)}.eyebrow,.card-eyebrow{font-size:11px;font-weight:800;letter-spacing:.25em}.eyebrow{color:#b8d8ec}.story h1{font-size:clamp(42px,4vw,70px);letter-spacing:-.05em;line-height:1.2;margin:18px 0}.story h1 em{font-style:normal;color:#c5eadc}.story-copy>p:last-child{font-size:17px;line-height:1.9;color:#e1e8ffb8}.story-cards{position:relative;z-index:1;flex:1;min-height:240px}.float-card{position:absolute;display:flex;flex-direction:column;gap:13px;padding:22px;border:1px solid #ffffff8c;border-radius:22px;background:#ffffff26;box-shadow:0 22px 52px #18244b38;backdrop-filter:blur(18px);animation:float 6s ease-in-out infinite}.float-card span{font-size:12px;color:#efffffab;letter-spacing:.08em}.float-card strong{font-size:21px;line-height:1.5}.float-card.first{top:25px;left:5%;width:250px;transform:rotate(-8deg)}.float-card.first i{width:65%;height:7px;border-radius:20px;background:#aee4cf}.float-card.second{right:3%;top:86px;width:235px;transform:rotate(7deg);animation-delay:-3s}.mini-bars{height:52px;display:flex;align-items:end;gap:8px}.mini-bars b{width:18px;border-radius:6px 6px 3px 3px;background:#c1e8d7;height:35%}.mini-bars b:nth-child(2){height:70%}.mini-bars b:nth-child(3){height:48%}.mini-bars b:nth-child(4){height:92%}.mini-bars b:nth-child(5){height:77%}@keyframes float{50%{translate:0 -13px}}.story-foot{font-size:12px;color:#e8f0ffab;position:relative;z-index:1}.form-side{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:26px}.auth-card{width:min(470px,100%);padding:20px 10px;animation:appear .7s ease both}@keyframes appear{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}.card-eyebrow{color:#7977cd}.auth-card h2{font-size:40px;letter-spacing:-.04em;margin:14px 0 8px}.card-sub{color:#8991a6;margin:0 0 35px;font-size:15px}.mode-tabs{display:flex;padding:5px;border-radius:15px;background:#e9ebf5;margin-bottom:28px}.mode-tabs button{border:0;flex:1;padding:13px;border-radius:11px;background:transparent;color:#747e97;font:inherit;font-weight:700;cursor:pointer;transition:.2s}.mode-tabs button.selected{background:white;color:#5a54b5;box-shadow:0 6px 18px #3d42721a}form label{display:block;font-size:14px;font-weight:700;color:#58647f;margin:0 0 20px}form input{display:block;width:100%;height:56px;margin-top:9px;padding:0 17px;border:1px solid #dce0ed;border-radius:14px;background:#fff;color:#20284a;font:inherit;font-size:16px;outline:0;transition:.2s}form input:focus{border-color:#8d87e7;box-shadow:0 0 0 4px #8d87e71e}.password-line{display:flex;align-items:center;position:relative}.password-line input{padding-right:66px}.password-line button{position:absolute;right:12px;top:18px;border:0;background:transparent;color:#726ebd;font-weight:700;cursor:pointer}.submit-button{width:100%;display:flex;justify-content:space-between;align-items:center;height:58px;margin-top:30px;padding:0 21px;border:0;border-radius:15px;background:linear-gradient(110deg,#665bdd,#7768df 60%,#789ecb);color:white;font:inherit;font-size:17px;font-weight:700;box-shadow:0 13px 28px #7469d94b;cursor:pointer;transition:transform .2s,box-shadow .2s}.submit-button:hover{transform:translateY(-2px);box-shadow:0 18px 32px #7469d95c}.submit-button:disabled{opacity:.6;cursor:wait}.submit-button span{font-size:25px;font-weight:300}.form-error{padding:12px 15px;background:#fff1ec;color:#a34e42;border-radius:11px;font-size:13px}.card-note{margin-top:25px;color:#9ca4b6;font-size:13px;line-height:1.8}.form-foot{font-size:12px;color:#aeb5c4}@media(max-width:950px){.auth-layout{grid-template-columns:1fr;padding:0}.story{min-height:300px;border-radius:0 0 26px 26px;padding:25px 28px}.story-copy{margin-top:34px}.story h1{font-size:38px}.story-cards,.story-foot{display:none}.form-side{padding:30px 24px}.auth-card{padding:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.form-error.success{background:#eaf8f0;color:#317c62}
.register-result{padding:28px;border:1px solid #d8eae3;border-radius:22px;background:linear-gradient(145deg,#f0fbf6,#f8f8ff);box-shadow:0 14px 34px #6b9c8b19}.result-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#d9f4e7;color:#25805a;font-size:27px;font-weight:800}.register-result h3{margin:20px 0 10px;color:#263653;font-size:24px}.register-result p{color:#62718b;line-height:1.8}.register-result strong{color:#504cb2}.register-result button{margin-top:15px;padding:12px 20px;border:0;border-radius:12px;background:#665bdd;color:#fff;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 8px 20px #665bdd35}

/* Fit the story and form to laptop height without cropping either column. */
.auth-layout{min-height:100svh;padding:clamp(12px,2vh,24px);gap:clamp(16px,2vw,28px);grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr)}
.story{padding:clamp(24px,4vh,48px) clamp(26px,3.5vw,54px);min-width:0}
.story-copy{margin-top:clamp(24px,5vh,72px)}
.story h1{font-size:clamp(34px,4.4vw,68px);line-height:1.18;margin:14px 0}
.story-english{font-size:clamp(12px,1.1vw,16px);letter-spacing:.06em;color:#c5eadc}
.story-copy>p:last-child{font-size:clamp(13px,1.2vw,17px);line-height:1.7}
.story-cards{min-height:170px}.float-card{padding:16px;gap:8px}.float-card strong{font-size:18px}.float-card.first{width:215px;top:12px;left:0}.float-card.second{width:195px;top:50px;right:0}.mini-bars{height:35px}
.auth-card{padding:8px 10px}.auth-card h2{font-size:clamp(28px,3vw,40px)}.card-sub{margin-bottom:20px}.mode-tabs{margin-bottom:20px}form label{margin-bottom:14px}form input{height:48px}.submit-button{height:52px;margin-top:20px}.card-note{margin-top:14px}.form-side{gap:12px}.forgot-button{background:none;border:0;color:#6559b7;font:inherit;font-size:13px;cursor:pointer;margin-top:15px;padding:5px 0}.forgot-button:hover{color:#39307d}
.recovery-dialog{width:min(440px,calc(100vw - 32px));max-height:90svh;overflow:auto;padding:26px;border:1px solid #ffffffaa;border-radius:26px;background:#f8f9ff;box-shadow:0 24px 80px #202d5e40;color:#263653}.recovery-dialog::backdrop{background:#202d5e55;backdrop-filter:blur(8px)}.recovery-head{display:flex;justify-content:space-between;align-items:center}.recovery-head h2{margin:0}.recovery-head button{border:0;background:#e9ebf5;border-radius:50%;width:32px;height:32px;font-size:22px;cursor:pointer}.recovery-dialog p{font-size:13px;line-height:1.7;color:#69768e}.recovery-dialog select{width:100%;margin-top:9px;height:48px;border:1px solid #dce0ed;border-radius:14px;padding:0 12px;background:white;font:inherit}
@media(min-width:851px) and (max-height:760px){.story-copy{margin-top:24px}.story-cards{min-height:125px}.float-card.second{top:30px}.story h1{font-size:clamp(34px,3.6vw,52px)}.auth-card h2{margin-top:8px}.mode-tabs button{padding:10px}.card-note{margin:8px 0}.form-foot{margin:0}.story-foot{margin-top:12px}}
@media(min-width:851px) and (max-height:610px){.story-cards{display:none}.story-foot{margin-top:auto}.story-copy{margin-top:auto;margin-bottom:auto}.form-side{justify-content:flex-start}.auth-card h2{font-size:28px}.card-sub{margin-bottom:12px}.mode-tabs{margin-bottom:12px}form label{margin-bottom:10px}.card-eyebrow{margin:5px 0}}
@media(max-width:850px){.auth-layout{grid-template-columns:1fr;padding:0;gap:0}.story{min-height:0;padding:22px 26px;border-radius:0 0 28px 28px}.story-copy{margin-top:22px}.story h1 br{display:none}.story h1{font-size:clamp(28px,6vw,42px)}.story h1 em{margin-left:.25em}.story-cards,.story-foot{display:none}.story-copy>p:last-child{display:none}.form-side{padding:24px;gap:10px}.auth-card{max-width:440px;padding:0}}

@media screen and (max-width:600px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}.auth-layout{min-height:100dvh;grid-template-columns:1fr}.story{padding:22px 24px;min-height:0}.story-copy{margin-top:16px}.story h1{font-size:28px;line-height:1.4;margin:12px 0}.story h1 em{margin-left:0;display:block}.story-english{font-size:11px}.story-cards,.story-foot,.quote-card{display:none}.brand{gap:10px}.form-side{padding:22px 20px calc(24px + env(safe-area-inset-bottom));min-width:0}.auth-card h2{font-size:27px}.card-sub{font-size:13px;margin-bottom:18px}.auth-card input,.recovery-dialog input,.recovery-dialog select{font-size:16px}.mode-tabs{margin-bottom:18px}.recovery-dialog{width:calc(100vw - 24px);padding:20px;max-height:90dvh;overflow:auto}
}
