/* Sitalk app · auth.css
 * Sign in, sign up, identity, onboarding and setup.
 * Load order and ownership: docs/APP-CSS.md */

.sign-in-link{
 font-size:12px;
 font-weight:550;
 white-space:nowrap;
}

@media (max-width:520px){
 .sign-in-link{
  font-size:12px;
 }
}
.auth-divider{
 display:flex;
 align-items:center;
 gap:16px;
 color:var(--muted);
}

.auth-divider:before,
.auth-divider:after{
 content:'';
 height:1px;
 background:var(--line);
 flex:1;
}

.recovery-link{
 display:inline-block;
 font-size:12px;
 text-decoration:underline;
 text-underline-offset:4px;
 margin-top:20px;
}

.auth-flow{
 width:min(450px,90%);
 margin:56px auto 92px;
 padding:32px;
 background:var(--surface);
 border:1px solid var(--line);
 border-radius:20px;
 box-shadow:var(--app-shadow);
}

.auth-flow h1{
 font-size:28px;
 letter-spacing:-1.3px;
 line-height:1.2;
 margin-bottom:12px;
}

.auth-flow .auth-subtitle{
 line-height:1.8;
}

.verification-label{
 font-size:12px;
 white-space:nowrap;
}

@media (max-width:600px){
 .auth-flow{
  padding:24px;
  margin-top:32px;
 }
}
.auth-header{
 padding:28px 5%;
 display:flex;
 align-items:center;
 justify-content:space-between;
}

.auth-header .wordmark{
 font-size:28px;
}

.auth-switch{
 display:flex;
 gap:16px;
 align-items:center;
 color:var(--muted);
 font-size:13px;
}

.auth-switch a{
 font-weight:650;
 color:var(--ink);
}

.auth-layout{
 width:min(1120px,90%);
 margin:32px auto 72px;
 display:grid;
 grid-template-columns:1.08fr 1fr;
 gap:100px;
 align-items:center;
}

.auth-story{
 align-self:stretch;
 background:var(--surface-soft);
 border:1px solid var(--line);
 border-radius:24px;
 padding:48px;
 display:flex;
 flex-direction:column;
 justify-content:space-between;
 min-height:620px;
 overflow:hidden;
 position:relative;
}

.auth-story h2{
 font-size:49px;
 line-height:1.14;
 letter-spacing:-2.8px;
 max-width:400px;
}

.auth-story>p{
 color:var(--muted);
 font-size:13px;
 max-width:340px;
 line-height:1.85;
}

.auth-orbit{
 position:absolute;
 left:50%;
 top:50%;
 width:200px;
 height:200px;
 border:1px dashed var(--line);
 border-radius:50%;
 transform:translate(-50%,-50%);
}

.auth-orbit:after{
 content:'';
 position:absolute;
 inset:36px;
 border:1px solid var(--line);
 border-radius:50%;
}

.auth-center{
 position:absolute;
 left:50%;
 top:50%;
 width:68px;
 height:68px;
 background:var(--lime);
 border:7px solid var(--surface-soft);
 border-radius:23px;
 display:grid;
 place-items:center;
 font-size:34px;
 transform:translate(-50%,-50%) rotate(-8deg);
 z-index:1;
}

.auth-node:nth-of-type(1){
 left:3%;
 top:18%;
 transform:rotate(-5deg);
}

.auth-node:nth-of-type(2){
 right:0;
 top:46%;
 transform:rotate(4deg);
 animation-delay:100ms;
}

.auth-form-wrap{
 max-width:405px;
 width:100%;
}

.auth-form-wrap h1{
 font-size:32px;
 letter-spacing:-1.5px;
 margin-bottom:12px;
}

.auth-subtitle{
 margin-bottom:32px;
}

.auth-form{
 display:grid;
 gap:20px;
}

.password-field{
 position:relative;
}

.password-field input{
 padding-right:64px;
}

.auth-footnote{
 color:var(--muted);
 margin-top:20px;
}

.auth-footnote a{
 text-decoration:underline;
 text-underline-offset:3px;
}

.auth-login .auth-story{
 min-height:520px;
}

.auth-login .auth-form-wrap{
 padding-block:44px;
}

.auth-story-art{
 height:215px;
 position:relative;
 margin:24px -12px;
 animation:story-enter 700ms var(--ease-out) both;
}

.auth-node{
 position:absolute;
 padding:8px 16px;
 border:1px solid var(--line);
 background:var(--surface);
 border-radius:9px;
 font-size:12px;
 font-weight:550;
 box-shadow:0 6px 20px #24423405;
 animation:auth-arrive 700ms var(--ease-out) backwards;
}

.auth-node:nth-of-type(3){
 left:15%;
 bottom:5%;
 transform:rotate(-3deg);
 animation-delay:200ms;
}

@keyframes story-enter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}

@keyframes auth-arrive{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}

@media (max-width:1100px){
 .auth-layout{
  gap:56px;
 }
 .auth-story{
  padding:36px;
 }
 .auth-story h2{
  font-size:42px;
 }
}

@media (max-width:760px){
 .auth-switch{
  font-size:12px;
 }
 .auth-header .wordmark{
  font-size:24px;
 }
 .auth-layout{
  grid-template-columns:1fr;
  width:min(440px,calc(100% - 44px));
  gap:32px;
 }
 .auth-story{
  display:none;
 }
 .auth-form-wrap{
  max-width:none;
 }
 .auth-form-wrap h1{
  font-size:32px;
 }
 .auth-login .auth-form-wrap{
  padding:0;
 }
 .auth-footnote{
  margin-top:24px;
 }
}
/* A shared sign-in/signup surface with provider errors beside provider actions. */
.account-body .auth-header{
 gap:20px;
}

.account-body .auth-header .wordmark{
 flex-shrink:0;
}

.account-body .auth-switch{
 flex-wrap:wrap;
 justify-content:flex-end;
}

.account-body .auth-switch a{
 min-height:44px;
 display:inline-flex;
 align-items:center;
}

.account-body .auth-form-wrap h1,
.account-body .auth-flow h1{
 text-wrap:balance;
}

.account-body .auth-subtitle,
.account-body .auth-footnote{
 text-wrap:pretty;
}

.account-body .auth-divider{
 margin:24px 0;
 font-size:12px;
}

.account-body .password-toggle{
 top:50%;
 transform:translateY(-50%);
 min-height:40px;
 right:7px;
}

.account-body .password-toggle:active{
 transform:translateY(-50%);
}

.account-body .auth-access-note{
 padding:20px 20px;
 margin-block:20px;
 border:1px solid var(--line);
 border-radius:14px;
 background:var(--surface-soft);
 font-size:13px;
 line-height:1.7;
}

.account-body .auth-access-note p{
 margin-top:8px;
 color:var(--muted);
}

.account-body .auth-access-note a{
 text-decoration:underline;
 text-underline-offset:3px;
}

@media (max-width:760px){
 .account-body .auth-header{
  padding:20px 24px;
  align-items:center;
 }
 .account-body .auth-switch>span{
  display:none;
 }
 .account-body .auth-switch{
  gap:12px;
  flex-wrap:nowrap;
 }
 .account-body .auth-layout{
  margin:24px auto 44px;
 }
 .account-body .auth-subtitle{
  margin-bottom:24px;
 }
 .account-body .auth-form-wrap .field input{
  font-size:16px;
 }
 .account-body .auth-access-note{
  padding:16px;
 }
}
.auth-center svg{
 width:58px;
 height:58px;
}

.account-body .auth-subtitle{
 font-size:14px;
}

.account-body .auth-form .button{
 min-height:48px;
 font-size:13px;
}

.password-toggle{
 position:absolute;
 border:0;
 background:transparent;
 font-size:12px;
 padding:3px;
 color:var(--muted);
 min-width:48px;
}

.setup-steps{
 padding-inline-start:24px;
 display:grid;
 gap:16px;
 margin-block:20px;
}

.setup-steps code,
.agent-skill-help code{
 overflow-wrap:anywhere;
 background:var(--surface-soft);
 padding:2px 4px;
 border-radius:4px;
 font-size:12px;
}

@media (max-width:640px){
 .auth-form-wrap{
  min-inline-size:0;
 }
}
.identity-profile{
 max-width:960px;
 margin-inline:auto;
 background:var(--surface,#fff);
 border:1px solid var(--line,#dce4dc);
 border-radius:22px;
 overflow:hidden;
}

.identity-profile-content{
 padding:0 32px 28px;
}

.identity-topline{
 display:grid;
 grid-template-columns:132px minmax(0,1fr) auto;
 gap:24px;
 align-items:center;
 margin-top:-40px;
 position:relative;
}

.identity-name{
 min-width:0;
 padding-top:36px;
}

.identity-name h1{
 font-size:clamp(28px,3vw,36px);
 line-height:1.16;
 margin:0;
 overflow-wrap:anywhere;
 text-wrap:balance;
}

.identity-joined{
 font-size:12px;
 color:var(--muted,#58695f);
 margin:0;
}

.identity-actions{
 display:flex;
 flex-direction:column;
 gap:8px;
 padding-top:40px;
 align-items:stretch;
}

.identity-actions .button{
 min-height:44px;
}

.identity-story{
 margin-top:28px;
 max-width:72ch;
}

.identity-bio{
 font-size:16px;
 line-height:1.7;
 margin:0;
 white-space:pre-line;
 overflow-wrap:anywhere;
 text-wrap:pretty;
 color:var(--ink,#244234);
}

.identity-links{
 display:flex;
 gap:12px 20px;
 flex-wrap:wrap;
 margin-top:20px;
}

.identity-links a{
 display:inline-flex;
 align-items:center;
 gap:8px;
 font-size:13px;
 min-height:36px;
 text-decoration:none;
 overflow-wrap:anywhere;
 color:var(--ink,#244234);
}

.identity-links svg{
 width:15px;
 height:15px;
 flex:none;
}

.identity-circle-stats{
 display:flex;
 gap:32px;
 padding-top:24px;
 margin-top:24px;
 border-top:1px solid var(--line);
}

.identity-circle-stats>div{
 display:grid;
 grid-template-columns:auto 1fr;
 gap:4px 12px;
 align-items:baseline;
}

.identity-circle-stats strong{
 font-size:22px;
 font-variant-numeric:tabular-nums;
}

.identity-circle-stats span{
 font-size:13px;
}

.identity-circle-stats small{
 grid-column:1/-1;
 color:var(--muted);
}

.identity-layout-compact .profile-cover{
 height:64px;
}

.identity-layout-compact .identity-topline{
 grid-template-columns:100px minmax(0,1fr) auto;
 margin-top:-24px;
}

.identity-layout-compact .identity-name,
.identity-layout-compact .identity-actions{
 padding-top:24px;
}

.identity-layout-compact .profile-privacy-badge{
 bottom:15px;
 font-size:12px;
}

@media (max-width:760px){
 .identity-actions .button{
  min-height:44px;
 }
}

@media (max-width:600px){
 .identity-profile{
  border-radius:18px;
 }
 .identity-profile-content{
  padding:0 20px 24px;
 }
 .identity-topline{
  grid-template-columns:88px minmax(0,1fr);
  gap:16px;
  margin-top:-28px;
 }
 .identity-name{
  padding-top:28px;
 }
 .identity-name h1{
  font-size:24px;
 }
 .identity-joined{
  font-size:12px;
 }
 .identity-actions{
  grid-column:1/-1;
  flex-direction:row;
  flex-wrap:wrap;
  padding-top:0;
  gap:8px;
 }
 .identity-actions .button{
  flex:1;
 }
 .identity-story{
  margin-top:24px;
 }
 .identity-bio{
  font-size:15px;
 }
 .identity-circle-stats{
  gap:20px;
  flex-wrap:wrap;
 }
 .identity-layout-compact .profile-cover{
  height:52px;
 }
 .identity-layout-compact .identity-topline{
  grid-template-columns:76px minmax(0,1fr);
  margin-top:-20px;
 }
 .identity-layout-compact .identity-actions{
  padding-top:0;
 }
}
.account-body .setup-steps{
 padding-left:24px;
 font-size:13px;
 line-height:1.8;
 color:var(--muted);
}

.account-body .setup-steps li+li{
 margin-top:12px;
}

.account-body .setup-steps code{
 font-size:12px;
 color:var(--ink);
 overflow-wrap:anywhere;
}

.account-body .setup-progress{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:12px;
 margin:0 0 24px;
 padding:0;
 list-style:none;
}

.account-body .setup-progress li{
 display:flex;
 align-items:center;
 gap:8px;
 min-width:0;
 font-size:12px;
 line-height:1.5;
 color:var(--muted);
}

.account-body .setup-progress b{
 display:grid;
 place-items:center;
 width:26px;
 height:26px;
 flex:none;
 border-radius:50%;
 border:1px solid var(--line);
 background:var(--surface);
 font-size:12px;
 color:var(--ink);
}

.account-body .setup-progress [data-complete=true] b{
 background:var(--accent-solid);
 color:var(--accent-on);
 border-color:var(--accent-solid);
}

.account-body .setup-checkpoint{
 padding:16px 20px;
 border:1px solid var(--line);
 border-radius:13px;
 background:var(--surface-soft);
 margin:20px 0;
}

.account-body .setup-checkpoint strong{
 font-size:14px;
 display:block;
}

.account-body .setup-checkpoint p{
 font-size:12px;
 line-height:1.7;
 color:var(--muted);
 margin-top:8px;
}

.account-body .setup-checkpoint button.text-link{
 appearance:none;
 padding:2px 4px;
 border:0;
 background:transparent;
 color:var(--ink);
 font:inherit;
 text-decoration:underline;
 text-underline-offset:3px;
 cursor:pointer;
}

@media (max-width:760px){
 .account-body .setup-progress li{
  gap:8px;
  align-items:flex-start;
 }
 .account-body .setup-progress b{
  width:22px;
  height:22px;
 }
}
.consent-symbol{
 display:grid;
 place-items:center;
 width:56px;
 height:56px;
 border-radius:16px;
 background:var(--surface-soft);
 margin-bottom:24px;
}

.consent-check{
 display:flex;
 gap:12px;
 align-items:flex-start;
 font-size:14px;
 line-height:1.7;
}

.consent-check input{
 width:20px;
 height:20px;
 flex:none;
 margin-top:3px;
}

.consent-actions{
 display:flex;
 justify-content:flex-end;
 gap:12px;
}

.setup-checkpoint{
 margin-block:16px 24px;
}

.setup-checkpoint strong{
 align-items:center;
 gap:8px;
}

.setup-checkpoint strong svg{
 inline-size:18px;
 block-size:18px;
 flex:none;
}

.setup-checkpoint p{
 margin-block:8px 12px;
}

.setup-checkpoint .button{
 margin-block-start:4px;
}

@media (max-width:760px){
 .setup-progress{
  gap:8px!important;
 }
 .setup-progress li{
  font-size:12px!important;
 }
}
