/* Sign-in, password setup and reset: one centered column on the warm canvas, the form on a single white card. */
body.auth-page{background:var(--bg)}
.auth-layout{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;min-height:100dvh;padding:48px 20px 24px}
.auth-shell{width:min(400px,100%);margin:auto 0}

/* background: the 3×3 brand cube, drawn large and rising out of the bottom-right corner, its top face in signal yellow */
.auth-art{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.auth-art svg{display:block;width:100%;height:100%}
.auth-art .glow-in{stop-color:var(--signal);stop-opacity:.34}
.auth-art .glow-out{stop-color:var(--signal);stop-opacity:0}
.auth-art .cube-top{fill:var(--signal)}
.auth-art .cube-right{fill:var(--text)}
.auth-art .cube-left{fill:var(--surface)}
.auth-art .cube-line{fill:none;stroke:var(--text);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.auth-art .cube-line path{vector-effect:non-scaling-stroke}
:root[data-theme=dark] .auth-art .glow-in{stop-opacity:.16}
:root[data-theme=dark] .auth-art .cube-right{fill:var(--surface-selected)}
:root[data-theme=dark] .auth-art .cube-left{fill:var(--surface-subtle)}
:root[data-theme=dark] .auth-art .cube-line{stroke:var(--border-hover)}

/* heading: the full DeepBuild lockup, then the title */
.auth-head{display:flex;flex-direction:column;align-items:center;margin-bottom:24px;text-align:center}
.auth-head .auth-brand{margin-bottom:28px}
.auth-head h1{margin:0;font-size:24px;line-height:1.3;letter-spacing:-.03em}
.auth-head #auth-description{max-width:44ch;margin:6px 0 0;font-size:15px;line-height:1.55;color:var(--text-muted)}
.auth-head #auth-description:empty{display:none}
.auth-head .account-identity{margin:0 0 6px;font-size:13px;color:var(--text-muted);overflow-wrap:anywhere}

/* the card */
.auth-card{padding:28px 28px 20px;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:0 1px 2px rgb(20 20 18 / .04),0 12px 32px -20px rgb(20 20 18 / .18)}
.auth-card form>label,.auth-card form>div{display:block;margin:0 0 16px}
.auth-card label{display:block;font-size:14px;font-weight:600;color:var(--text)}
.auth-card input{display:block;width:100%;height:44px;margin-top:8px;font-size:15px;font-weight:400}
.auth-card .password-wrap{position:relative;display:block}
.password-wrap input{padding-right:48px}
.password-wrap button{position:absolute;top:4px;right:4px;min-height:36px;color:var(--text-muted)}
.auth-card button[type=submit]{width:100%;min-height:44px;margin-top:8px;font-size:15px}
.auth-card .field-help{margin:-4px 0 16px;font-size:13px;line-height:1.55;color:var(--text-muted)}
.auth-card #auth-error,.auth-card #auth-message{margin:0 0 12px;padding:10px 12px;border-radius:var(--radius);font-size:14px;line-height:1.5}
.auth-card #auth-error{color:var(--danger);background:var(--danger-bg)}
.auth-card #auth-message{color:var(--success);background:var(--success-bg)}
.auth-links{display:flex;justify-content:center;gap:16px;margin-top:16px;font-size:14px}
.auth-links a{color:var(--text-muted);text-decoration:none}
.auth-links a:hover{color:var(--text);text-decoration:underline}
.invite-notice{margin:20px 0 0;text-align:center;font-size:14px;color:var(--text-muted)}

/* footer */
.auth-footer{display:flex;justify-content:center;gap:20px;padding-top:32px}
.auth-footer a,.auth-footer span{font-size:13px;color:var(--text-muted);text-decoration:none}
.auth-footer a:hover{color:var(--text);text-decoration:underline}


:root[data-theme=dark] .auth-card{box-shadow:none}
@media(max-width:720px){.auth-art{top:auto;left:30%;height:26vh}.auth-art .cube-line{stroke-width:2}}
@media(max-width:480px){.auth-layout{padding:32px 16px 20px}.auth-card{padding:24px 20px 18px}.auth-head h1{font-size:22px}}


/* setting up an account: first and last name side by side, stacked on narrow screens */
.auth-card form>.name-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.auth-card form>.name-fields[hidden]{display:none}
@media(max-width:420px){.auth-card form>.name-fields{grid-template-columns:1fr}}
