
:root{
  color-scheme:dark;
  --bg:#05070a;
  --panel:#0a0e13;
  --card:#0e141b;
  --text:#f4f7f9;
  --muted:#8e99a5;
  --line:rgba(255,255,255,.09);
  --red:#ef4f5d;
  --blue:#55adff;
  --radius:28px;
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input{font:inherit}
a{color:inherit}
.auth-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(390px,46%) 1fr;
}
.auth-brand-panel{
  position:relative;
  min-height:100vh;
  padding:38px clamp(34px,5vw,82px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-right:1px solid var(--line);
  background:
    radial-gradient(circle at 18% 20%,rgba(239,79,93,.18),transparent 32%),
    radial-gradient(circle at 88% 75%,rgba(68,150,230,.16),transparent 34%),
    linear-gradient(145deg,#090d13,#05070a 60%);
}
.auth-brand-panel::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.16;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(to bottom,transparent,black 25%,black 70%,transparent);
}
.auth-brand{
  position:relative;
  z-index:1;
  width:max-content;
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  letter-spacing:.12em;
  font-size:17px;
  font-weight:700;
}
.auth-brand img{border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,.35)}
.auth-brand b{color:#ff5a67}
.auth-story{
  position:relative;
  z-index:1;
  max-width:630px;
  margin:auto 0;
  padding:80px 0;
}
.eyebrow,.kicker{
  margin:0 0 16px;
  color:#ff6974;
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.eyebrow{display:flex;align-items:center;gap:9px}
.eyebrow span{width:24px;height:1px;background:#ff6974}
.auth-story h1{
  margin:0;
  font-size:clamp(58px,6vw,94px);
  line-height:.94;
  letter-spacing:-.065em;
}
.auth-story h1 em{color:#ff6671;font-style:normal}
.auth-story>p:not(.eyebrow){
  max-width:560px;
  margin:28px 0;
  color:#a4aeb8;
  font-size:17px;
  line-height:1.65;
}
.auth-principles{display:flex;flex-wrap:wrap;gap:12px 24px}
.auth-principles span{color:#b6c0c9;font-size:12px;font-weight:700}
.auth-principles i{color:#69b8ff;font-style:normal;margin-right:6px}
.auth-brand-footer{
  position:relative;
  z-index:1;
  margin:0;
  color:#66717c;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.auth-panel{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:42px 24px;
  background:
    radial-gradient(circle at 100% 0,rgba(72,153,228,.08),transparent 30%),
    #070a0e;
}
.auth-card{
  width:min(100%,560px);
  padding:clamp(24px,4vw,44px);
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,.038),rgba(255,255,255,.018));
  box-shadow:0 32px 100px rgba(0,0,0,.42);
}
.mobile-home{display:none;margin-bottom:24px;color:#98a3ad;text-decoration:none;font-size:12px}
.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:4px;
  margin-bottom:35px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#080c11;
}
.auth-tab{
  min-height:44px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#7f8a95;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
}
.auth-tab.active{
  color:#fff;
  background:#171e27;
  box-shadow:0 5px 18px rgba(0,0,0,.28);
}
.auth-view{display:none}
.auth-view.active{display:block}
.auth-heading{margin-bottom:26px}
.auth-heading h2,.session-view h2{
  margin:0 0 10px;
  font-size:clamp(31px,5vw,43px);
  letter-spacing:-.045em;
}
.auth-heading>p:last-child,.session-view>p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
form{display:grid;gap:17px}
label{
  display:grid;
  gap:8px;
  color:#c8d0d7;
  font-size:11px;
  font-weight:800;
  letter-spacing:.025em;
}
input{
  width:100%;
  min-height:50px;
  padding:0 15px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  outline:none;
  background:#080c11;
  color:#fff;
  transition:border-color .2s ease,box-shadow .2s ease;
}
input::placeholder{color:#56616c}
input:focus{
  border-color:rgba(85,173,255,.62);
  box-shadow:0 0 0 4px rgba(85,173,255,.09);
}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.password-wrap{position:relative;display:block}
.password-wrap input{padding-right:66px}
.password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#7f8b97;
  cursor:pointer;
  font-size:10px;
  font-weight:900;
}
.form-row{display:flex;justify-content:space-between;align-items:center;gap:14px}
.check{
  display:flex;
  grid-template-columns:none;
  flex-direction:row;
  align-items:flex-start;
  gap:9px;
  color:#818d98;
  font-size:11px;
  font-weight:600;
  line-height:1.5;
}
.check input{width:16px;height:16px;min-height:0;padding:0;margin:0;accent-color:#ef4f5d}
.check a{color:#c4ccd3}
.terms{margin:2px 0}
.text-button,.back-button{
  padding:0;
  border:0;
  background:none;
  color:#68b6ff;
  cursor:pointer;
  font-size:11px;
  font-weight:800;
}
.back-button{margin-bottom:26px}
.auth-submit,.secondary-action{
  min-height:52px;
  padding:0 18px;
  border:0;
  border-radius:13px;
  cursor:pointer;
  font-weight:900;
}
.auth-submit{
  color:#fff;
  background:linear-gradient(135deg,#f15a66,#ca2938);
  box-shadow:0 15px 35px rgba(221,45,59,.2);
}
.auth-submit:disabled{opacity:.48;cursor:not-allowed}
.secondary-action{
  color:#c3ccd4;
  border:1px solid var(--line);
  background:#0a0e13;
}
.link-button{display:grid;place-items:center;text-decoration:none}
.config-warning,.auth-message{
  padding:13px 14px;
  border-radius:12px;
  font-size:12px;
  line-height:1.5;
}
.config-warning{
  margin-bottom:22px;
  color:#ffd2a1;
  border:1px solid rgba(255,176,78,.25);
  background:rgba(255,176,78,.07);
}
.config-warning code{color:#fff}
.auth-message{display:none;margin-top:18px}
.auth-message.show{display:block}
.auth-message.success{color:#a9e8c4;border:1px solid rgba(72,200,126,.24);background:rgba(72,200,126,.07)}
.auth-message.error{color:#ffb2b9;border:1px solid rgba(239,79,93,.25);background:rgba(239,79,93,.07)}
.auth-message.info{color:#abd7ff;border:1px solid rgba(85,173,255,.24);background:rgba(85,173,255,.07)}
.auth-footer{
  display:flex;
  flex-wrap:wrap;
  gap:12px 20px;
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid var(--line);
  color:#65717c;
  font-size:10px;
}
.auth-footer a{text-decoration:none}
.auth-footer span{margin-left:auto}
.session-view{text-align:center;padding:22px 0 6px}
.session-icon{
  width:64px;height:64px;margin:0 auto 24px;display:grid;place-items:center;border-radius:20px;
  color:#baf0ce;background:rgba(72,200,126,.09);border:1px solid rgba(72,200,126,.22);font-size:25px
}
.session-actions{display:grid;gap:11px;margin-top:28px}

@media(max-width:920px){
  .auth-layout{grid-template-columns:1fr}
  .auth-brand-panel{display:none}
  .auth-panel{padding:22px 16px}
  .mobile-home{display:inline-block}
}
@media(max-width:520px){
  .auth-card{padding:23px 18px;border-radius:22px}
  .field-grid{grid-template-columns:1fr}
  .form-row{align-items:flex-start;flex-direction:column}
  .auth-footer span{width:100%;margin-left:0}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition-duration:.01ms!important}
}


.getting-started{
  margin-top:28px;
  padding:22px;
  text-align:left;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.025);
}
.getting-started-label{
  margin:0 0 15px!important;
  color:#ff6974!important;
  font-size:10px!important;
  font-weight:900;
  letter-spacing:.14em;
}
.getting-started ol{margin:0;padding:0;list-style:none;display:grid;gap:15px;counter-reset:steps}
.getting-started li{position:relative;padding-left:38px;counter-increment:steps}
.getting-started li::before{
  content:counter(steps);
  position:absolute;left:0;top:0;width:25px;height:25px;display:grid;place-items:center;
  border-radius:8px;color:#b9dcff;background:rgba(85,173,255,.1);border:1px solid rgba(85,173,255,.22);
  font-size:10px;font-weight:900
}
.getting-started li b{display:block;margin-bottom:4px;color:#eef3f7;font-size:13px}
.getting-started li span{display:block;color:#87939e;font-size:12px;line-height:1.5}
.beta-status{display:flex;gap:12px;align-items:flex-start;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.beta-status>span{width:9px;height:9px;margin-top:5px;border-radius:50%;background:#ff5965;box-shadow:0 0 0 5px rgba(255,89,101,.1)}
.beta-status b{font-size:12px;color:#e5ebef}
.beta-status p{margin:4px 0 0!important;color:#7e8a95!important;font-size:11px!important;line-height:1.5}


/* Rev 19.4 — standardized FireVault identity and account-page polish */
.firevault-wordmark{
  display:inline-flex;
  align-items:baseline;
  letter-spacing:.115em;
  font-weight:850;
  white-space:nowrap;
}
.wordmark-fire{color:#ff4e60}
.wordmark-vault{color:#fff}

.auth-brand{
  gap:14px;
  line-height:1;
}
.auth-brand img{
  width:58px;
  height:58px;
  object-fit:contain;
  border-radius:16px;
}
.auth-story>p:not(.eyebrow){
  text-wrap:pretty;
}
.auth-card{
  overflow:hidden;
}
.auth-heading{
  max-width:470px;
}
.auth-heading h2,
.session-view h2{
  text-wrap:balance;
  line-height:1.04;
}
.auth-heading>p:last-child,
.session-view>p{
  max-width:470px;
  text-wrap:pretty;
}
.auth-tab{
  letter-spacing:.01em;
}
.form-row{
  min-height:28px;
}
.text-button{
  padding:6px 0;
  text-decoration:underline;
  text-decoration-color:rgba(104,182,255,.35);
  text-underline-offset:4px;
}
.text-button:hover,
.back-button:hover,
.account-help a:hover{
  color:#a6d5ff;
}
.session-welcome strong{
  color:#ff4e60;
  font-weight:900;
}
.session-email{
  margin-inline:auto!important;
}
.account-help{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line);
  color:#8d99a4;
  font-size:11px;
  font-weight:750;
}
.account-help a{
  color:#9ecfff;
  text-decoration:none;
}
.auth-footer{
  justify-content:center;
  margin-top:16px;
  padding-top:16px;
  text-align:center;
}
.auth-footer span{
  margin-left:0;
}
@media(max-width:520px){
  .auth-heading h2,.session-view h2{font-size:32px}
  .auth-brand img{width:48px;height:48px}
}


/* Rev 19.5 — restored original logo and compact connected-account view */
.auth-brand img,
.brand img,
.footer-brand img{
  object-fit:cover;
}

.session-view{
  padding:8px 0 0;
}
.session-icon{
  width:48px;
  height:48px;
  margin:0 auto 12px;
  border-radius:15px;
  font-size:20px;
}
.session-view .kicker{
  margin-bottom:7px;
}
.session-view h2{
  margin-bottom:7px;
  font-size:clamp(28px,3.5vw,39px);
}
.session-view>p{
  margin-top:0;
  font-size:12px;
}
.getting-started{
  margin-top:17px;
  padding:15px 17px;
  border-radius:15px;
}
.getting-started-label{
  margin-bottom:10px!important;
}
.getting-started ol{
  gap:10px;
}
.getting-started li{
  padding-left:32px;
}
.getting-started li::before{
  width:22px;
  height:22px;
}
.getting-started li b{
  font-size:12px;
}
.getting-started li span{
  margin-top:2px;
  font-size:10px;
  line-height:1.35;
}
.beta-status{
  margin-top:12px;
  padding:11px 12px;
}
.beta-status b{
  font-size:11px;
}
.beta-status p{
  margin-top:2px!important;
  font-size:9px!important;
  line-height:1.35;
}
.session-actions{
  grid-template-columns:1fr auto;
  align-items:center;
  gap:10px;
  margin-top:15px;
}
.session-actions .auth-submit,
.session-actions .secondary-action{
  min-height:44px;
}
.account-help{
  margin-top:16px;
  padding-top:14px;
}
.auth-footer{
  margin-top:12px;
  padding-top:12px;
}

/* First and last name fields must never be visually divided by an HR rule. */
#signup-form hr,
.field-grid hr{
  display:none!important;
}
.field-grid{
  border:0!important;
}

body.is-authenticated .account-help{
  display:none;
}


/* Rev 19.6 — corrected original logo and simplified connected actions */
.session-actions{
  display:block;
}
.session-actions .auth-submit{
  width:100%;
}
.auth-brand img{
  object-fit:contain;
  background:#05070a;
}


/* Rev 20 — stable account layout */
.name-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  border:0!important;
}
.name-grid::before,
.name-grid::after{
  display:none!important;
  content:none!important;
}
.name-grid hr,
#signup-form hr{
  display:none!important;
}
.session-actions{
  display:block;
}
.session-actions .auth-submit{
  width:100%;
}
.auth-brand img{
  object-fit:contain;
  border-radius:15px;
}
@media (min-width:900px) and (min-height:700px){
  .auth-layout{
    min-height:100svh;
    height:100svh;
    overflow:hidden;
  }
  .auth-card{
    max-height:calc(100svh - 34px);
    overflow:auto;
    scrollbar-width:none;
  }
  .auth-card::-webkit-scrollbar{display:none}
}
@media(max-width:560px){
  .name-grid{grid-template-columns:1fr}
}

.connected-secondary-link{display:block;margin-top:10px;color:#9ecfff;font-size:10px;font-weight:800;text-align:center;text-decoration:none}.connected-secondary-link:hover{color:#d4eaff}
