/* Auth owns its document flow, independently of the fixed-height app shell. */
.auth-page{min-height:100vh;min-height:100dvh;height:auto;overflow-y:auto;background:#fafaf9;display:flex;flex-direction:column}
.auth-header{display:flex;align-items:center;justify-content:space-between;min-height:88px;gap:24px;flex:none}
.auth-back{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:13px;color:var(--muted)}
.auth-back:hover{color:var(--accent)}
.auth-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:clamp(50px,8vw,130px);flex:1;padding-top:42px;padding-bottom:68px}
.auth-story{padding:36px 0}.auth-story h2{font-size:clamp(42px,4.3vw,64px);line-height:1.2;letter-spacing:-2.5px;margin:22px 0;font-weight:650}.auth-story h2 span{color:var(--accent)}
.story-lead{color:var(--muted);font-size:17px;line-height:1.9;margin-bottom:40px}
.story-preview{max-width:440px;padding:26px;background:linear-gradient(145deg,#fff,#fff7f2);border:1px solid #fff;border-radius:24px;box-shadow:0 18px 70px #4532220a}
.story-preview-head{display:flex;gap:10px;align-items:center;font-size:12px;color:#726c67}.story-entry{display:flex;align-items:center;gap:12px;margin-top:30px}.entry-icon{width:38px;height:38px;border-radius:50%;background:#f8e6dc;color:var(--accent);display:grid;place-items:center;font-size:22px}.story-entry b{font-size:14px;font-weight:550}.story-entry div>span{display:block;color:var(--muted);font-size:11px;margin-top:5px}.entry-time{margin-left:auto;color:var(--muted);font-size:11px}
.story-bars{height:72px;display:flex;gap:10px;align-items:flex-end;margin:18px 0}.story-bars i{flex:1;border-radius:4px;background:#eed6c7;height:35%}.story-bars i:nth-child(3n){height:60%;background:#e8bea7}.story-bars i:nth-child(3n + 1){height:45%}.story-bars i:nth-child(4n){height:75%;background:#e6b298}.story-bars i:last-child{height:95%;background:var(--accent)}
.story-caption{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin:0}.story-caption span{white-space:nowrap;color:#88807a}.story-bottom{font-size:11px;margin-top:30px;color:var(--ink)}.story-bottom span{margin-left:18px;color:var(--muted)}
.auth-card{width:100%;max-width:440px;justify-self:end;background:#fff;border:1px solid #ececeb;box-shadow:0 12px 60px #24242404;border-radius:28px;padding:40px}
.auth-heading>img{margin-bottom:25px}.auth-heading .eyebrow{font-size:11px;letter-spacing:1px;margin:0 0 10px}.auth-heading h1{font-size:32px;letter-spacing:-1px;line-height:1.3;margin:0 0 12px;font-weight:650}.auth-heading>p:last-child{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 28px}
.auth-field{margin-top:18px}.auth-field label{display:block;font-size:13px;font-weight:550;margin-bottom:9px}.auth-field input{width:100%;height:52px;background:#fafaf9;border:1px solid #dededb;border-radius:12px;padding:0 15px;color:var(--ink);font:inherit;font-size:16px;transition:border-color .2s,box-shadow .2s}.auth-field input::placeholder{color:#8e8e90;font-size:14px}.auth-field input:hover{border-color:#afafad}.auth-field input:focus{border-color:var(--accent);outline:3px solid #d9664320;outline-offset:0;background:#fff}.auth-field small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:8px}.password-wrap{position:relative}.password-wrap input{padding-right:66px}.password-wrap button{position:absolute;right:5px;top:4px;height:44px;min-width:52px;color:var(--muted);font-size:12px;border-radius:8px}.password-wrap button:hover{color:var(--accent)}
#authError{color:#b32e26;font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin:14px 0}#authError:empty{margin:22px 0 0}
.auth-page .auth-submit{width:100%;min-height:52px;border-radius:12px;font-size:15px}.auth-submit:disabled{opacity:.55;cursor:wait}.auth-toggle{width:100%;min-height:48px;margin-top:12px;font-size:13px;color:var(--accent);border-radius:10px}.auth-toggle:hover{background:#fdf6f1}.auth-toggle:disabled{color:#929292;cursor:default}.auth-notes{border-top:1px solid var(--line);margin-top:18px;padding-top:14px;text-align:center}.auth-notes p{font-size:11px;color:var(--muted);line-height:1.8;margin:5px 0}
.auth-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:20px;padding-bottom:25px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
/* The signed-in app also imports this file for its account switch button. */
.account-button{font-size:12px;padding:8px 12px;border:1px solid #ded7cf;border-radius:12px;background:#fff;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:1600px){.auth-layout{gap:160px}.auth-card{max-width:470px;padding:48px}}
@media(max-width:900px){.auth-layout{gap:38px}.auth-story h2{font-size:42px}.auth-card{padding:30px}.story-preview{padding:20px}.story-caption{flex-wrap:wrap}}
@media(max-width:700px){.auth-header{min-height:72px}.auth-layout{display:block;padding-top:26px;padding-bottom:44px;flex:1}.auth-story{display:none}.auth-card{max-width:440px;margin:auto;padding:30px 25px;border-radius:24px}.auth-heading>img{margin-bottom:22px}.auth-heading h1{font-size:30px}.auth-footer{font-size:10px;padding-bottom:calc(22px + env(safe-area-inset-bottom))}.account-button{max-width:100px;padding:6px;font-size:11px}}
@media(max-width:360px){.auth-card{padding:25px 20px}.auth-footer{gap:8px}}
.auth-footer .beian{color:inherit}.auth-footer .beian:hover{text-decoration:underline}
