.auth-layout{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;max-width:1600px;margin:auto}
.auth-main{padding:42px 9%;display:flex;flex-direction:column}
.auth-card{max-width:420px;width:100%;margin:auto;padding:65px 0}
.auth-card h1{font-family:var(--display);font-size:2.625rem;line-height:1.18;letter-spacing:-1.8px;margin:18px 0}
.auth-intro{color:var(--muted);line-height:1.7;margin:0 0 30px}
.auth-card label{display:block;font-size:var(--text-base);font-weight:600;margin:20px 0 9px}
.auth-card input{font-size:var(--text-base);width:100%;border:1px solid var(--field-border);border-radius:8px;padding:14px;background:#fff;color:var(--ink);min-height:54px}
.auth-card input::placeholder{color:var(--muted)}
.password-wrap{position:relative}
.password-wrap input{padding-right:74px}
.password-wrap button{position:absolute;right:4px;top:4px;bottom:4px;padding:0 10px;font-size:var(--text-base);border:0;background:transparent;color:var(--green)}
.auth-card small{display:block;font-size:var(--text-base);color:var(--muted);margin-top:8px}
.auth-forgot{display:block;text-align:right;font-size:var(--text-base);color:var(--green);margin-top:13px}
.auth-card .button{width:100%;margin-top:26px;justify-content:space-between;min-height:50px}
.auth-switch{font-size:var(--text-base);text-align:center;margin:26px 0 0;color:var(--muted)}
.auth-switch a{color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.auth-footnote{font-size:var(--text-sm);color:var(--muted);text-align:center;margin-top:28px}
.auth-footer{font-size:var(--text-sm);color:var(--muted);display:flex;gap:10px;align-items:center;justify-content:center}
.auth-footer span{color:var(--orange)}
.auth-story{margin:20px 20px 20px 0;border-radius:18px;background:#e9eddf;padding:36px 10%;position:relative;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.auth-story-top{display:flex;justify-content:space-between;align-items:center;font-size:var(--text-xs);font-weight:700;letter-spacing:1.3px;color:var(--muted);margin-bottom:23px}
.auth-story-top span:last-child{border:1px solid #cad4bd;border-radius:4px;padding:5px}
.auth-photo{position:relative;aspect-ratio:3/3.8;max-height:480px;border:7px solid #fff;border-radius:16px;transform:rotate(-3deg);box-shadow:0 18px 40px #3a4d3020;overflow:hidden}
.auth-photo>img{height:100%;width:100%;object-fit:cover}
.auth-photo-shade{position:absolute;inset:0;background:linear-gradient(0deg,#182a1de0,transparent 85%)}
.auth-photo-tag{position:absolute;top:22px;left:23px;color:#fff;font-size:var(--text-xs);letter-spacing:1.5px}
.auth-photo-caption{position:absolute;bottom:45px;left:25px;color:#fff;font-family:var(--display);font-size:clamp(1.6875rem,3vw,2.6875rem);font-weight:700;line-height:1.2;letter-spacing:-1px}
.auth-photo-caption em{color:var(--muted);font-style:normal}
.auth-photo-play{position:absolute;right:22px;bottom:35px;border:1px solid #ffffff70;border-radius:50%;width:43px;height:43px;display:grid;place-items:center;color:#fff;font-size:var(--text-3xl)}
.auth-story-bottom{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-top:36px}
.auth-story-bottom strong{font-family:var(--display);font-size:var(--text-base);line-height:1.7}
.auth-story-bottom p{font-size:var(--text-sm);color:var(--muted);line-height:1.8;margin:0}
.auth-spark{position:absolute;right:12px;top:12%;font-size:4.0625rem;color:var(--orange);transform:rotate(15deg)}
.auth-message{padding:13px 15px;border:1px solid #d7e0c9;background:#edf2e5;border-radius:8px;line-height:1.6;font-size:var(--text-base);margin:20px 0}
.auth-message[data-error=true]{border-color:#e9c5b5;background:#fff1e9;color:#924d32}
.session-pending .sidebar,.session-pending .app-shell{visibility:hidden}
.session-gate{min-height:100dvh;display:grid;place-content:center;text-align:center;gap:18px;padding:30px;color:var(--ink)}
.session-gate p{color:var(--muted);max-width:380px;line-height:1.8}
.session-gate a{color:var(--action);text-decoration:underline}
.account strong,.account small{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.account-email{font-size:var(--text-base);overflow-wrap:anywhere}
.account-logout{margin-top:18px}
@media(max-width:900px){.auth-story{padding:35px 9%}
.auth-story-bottom{flex-direction:column;gap:10px}
.auth-card h1{font-size:2.25rem}
.auth-main{padding:35px 9%}
.auth-footer{font-size:var(--text-sm)}
}
@media(max-width:650px){.auth-layout{display:block}
.auth-main{min-height:100dvh;padding:30px 28px}
.auth-card{padding:58px 0}
.auth-card h1{font-size:2.4375rem}
.auth-story{display:none}
.auth-footer{padding-top:15px;font-size:var(--text-sm)}
.auth-switch{font-size:var(--text-base)}
}

.google-signin{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:46px;padding:12px 20px;border:1px solid #b5b9b0;border-radius:8px;background:#fff;color:#303531;font-size:var(--text-base);font-weight:500;transition:background .15s}
.google-signin:hover:not(:disabled){background:#f2f5ed}
.google-signin:disabled{opacity:.65}
.google-mark{width:20px;height:20px;stroke:none;flex-shrink:0}
.google-status{font-size:var(--text-base);line-height:1.6;color:var(--muted);text-align:center;margin:9px 0}
.auth-divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:var(--text-sm);margin:23px 0 17px}
.auth-divider:before,.auth-divider:after{content:'';height:1px;background:var(--line);flex:1}


.auth-card label{font-size:var(--text-base)}
.auth-forgot,.auth-switch,.auth-footer,.auth-footnote{font-size:var(--text-sm);line-height:1.6}
.auth-forgot{padding:8px 0;min-height:40px}
.auth-story-bottom{flex-wrap:wrap}
.auth-story-bottom strong{font-size:var(--text-base)}
.auth-story-bottom p{font-size:var(--text-sm)}
.auth-card input::placeholder{color:var(--muted)}
.auth-layout{padding:0}
.auth-card{padding:32px 0}
.auth-card h1{font-size:2.25rem}
.auth-intro{margin-bottom:24px}
.auth-card label{margin-top:16px}
.auth-divider{margin:16px 0 12px}
.auth-card .button{margin-top:18px}
@media(max-width:650px){.auth-card{padding:40px 0}.auth-main{padding:24px}.auth-header{flex-wrap:wrap}.auth-footer{font-size:var(--text-sm)}}
@media(max-width:650px){.auth-card h1{font-size:clamp(2rem,8.5vw,2.5rem)}}
