/* Sign-in is a focused entry to the portal: a near-black landing (deep enough
   to stay black on an OLED panel) with the dotted globe behind the copy and the
   sign-in card. The signed-in workspace stays light; this file only styles the
   sign-in page. */
.signin-page {
  --sg-bg:#07090B; --sg-panel:#111418; --sg-line:#2B3036; --sg-line-2:#3A4047;
  --sg-ink:#FFFFFF; --sg-body:#B7BDC3; --sg-muted:#8A9198;
  /* Half the frame: the dashed rules sit 620px either side of centre, or further
     out when the globe (40vw radius) needs the room, never closer than the gutter.
     The hero and the footer are the same width as the frame, so the headline sits
     just inside the left rule and the card just inside the right one at every
     width; the header runs the full width with the wordmark in the corner. */
  --sg-rule:max(620px, 40vw + 16px);
  --sg-frame:calc(2 * var(--sg-rule));
  background:var(--sg-bg);
  color:var(--sg-body);
}
/* The first screen is the fold: header and landing fill the viewport, and the
   footer waits below it. */
.signin-page .signin-fold {
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}
.signin-page .header { background:var(--sg-bg); }
/* The wordmark sits in the page's top-left corner (at the gutter), outside the frame. */
.signin-page .header .nav-inner { max-width:none; padding-block:1.2rem; }

.signin-page .signin-main {
  position:relative;
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.signin-page .signin-main::before,
.signin-page .signin-main::after {
  content:''; position:absolute; top:0; bottom:0; width:0; z-index:1; pointer-events:none;
  border-left:1px dashed rgba(255,255,255,.09);
}
.signin-page .signin-main::before { left:max(var(--gut), calc(50% - var(--sg-rule))); }
.signin-page .signin-main::after { left:min(calc(100% - var(--gut)), calc(50% + var(--sg-rule))); }
.signin-page .signin-globe {
  position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none;
}
.signin-page .signin-hero {
  position:relative; z-index:2;
  width:100%; max-width:var(--sg-frame); margin:0 auto;
  padding:clamp(1.5rem,5vh,4rem) var(--gut) clamp(2rem,6vh,4rem);
  display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(2rem,6vw,5.5rem); align-items:start;
}
.signin-page .signin-copy { padding-top:clamp(.5rem,3vh,2.5rem); max-width:36rem; }
.signin-page .eyebrow { color:#9AA2AA; font-size:.72rem; }
/* The headline is set in the brand's serif display face (Newsreader on the web,
   Georgia as the portable stand-in), at a size that reads as a title rather than
   a poster. The card and the rest of the page stay in Manrope. */
.signin-page .signin-copy h1 {
  color:var(--sg-ink);
  font-family:'Newsreader',Georgia,'Times New Roman',serif;
  font-weight:500;
  font-size:clamp(2.1rem,3.4vw,3rem);
  line-height:1.1; letter-spacing:-.005em;
  margin:.9rem 0 1.2rem; max-width:18ch;
}

.signin-page .signin-card {
  width:100%; max-width:30rem; justify-self:end;
  padding:clamp(1.4rem,3vw,2.2rem);
  border:1px solid var(--sg-line); border-radius:6px;
  background:var(--sg-panel);
}
.signin-page .signin-intro { margin-bottom:1.4rem; }
.signin-page .signin-intro h2 { color:var(--sg-ink); font-size:1.7rem; letter-spacing:-.03em; }
.signin-page .signin-intro p { color:var(--sg-body); font-size:.93rem; line-height:1.6; margin-top:.55rem; }

.signin-page .field { margin-bottom:1rem; }
.signin-page .field label { color:var(--sg-ink); margin-bottom:.45rem; font-size:.86rem; text-transform:none; letter-spacing:normal; }
.signin-page .field input {
  min-width:0; min-height:50px; font-size:1rem; padding:.8rem .9rem;
  background:var(--sg-bg); border:1px solid var(--sg-line-2); border-radius:4px; color:var(--sg-ink);
}
.signin-page .field input::placeholder { color:#7F8D99; opacity:1; }
.signin-page .field input:focus-visible { outline:2px solid #FFFFFF; outline-offset:2px; }
.signin-page .signin-honeypot { position:absolute; left:-9999px; }

.signin-page #signin-form .btn {
  display:flex; width:100%; min-height:50px; justify-content:center; align-items:center; text-align:center;
  padding:.85rem 1rem; font-size:.9rem; line-height:1.45; border-radius:4px;
}
.signin-page #signin-form .btn-primary { background:#FFFFFF; color:#111418; border-color:#FFFFFF; }
.signin-page #signin-form .btn-primary:hover { background:#E6EAEE; border-color:#E6EAEE; transform:none; }
.signin-page #signin-form .btn-ghost { background:transparent; border-color:rgba(255,255,255,.32); color:var(--sg-ink); }
.signin-page #signin-form .btn-ghost:hover { background:transparent; border-color:#FFFFFF; }
.signin-page #signin-form .btn:focus-visible { outline:2px solid #FFFFFF; outline-offset:3px; }
.signin-page #passkey-signin { margin-top:.7rem; }
.signin-page .signin-passkey-hint { color:var(--sg-muted); font-size:.76rem; text-align:center; margin-top:.65rem; }
.signin-page .form-status { min-height:0; margin-top:1rem; font-size:.86rem; line-height:1.6; overflow-wrap:anywhere; color:var(--sg-body); }
.signin-page .form-status.error { color:#F29B9B; }
.signin-page .form-status:empty { margin:0; }
.signin-page .signin-intro .signin-notice { margin-top:.8rem; color:var(--sg-ink); font-weight:600; }
.signin-page .signin-intro .signin-notice[hidden] { display:none; }
.signin-page .signin-help { border-top:1px solid var(--sg-line); margin-top:1.4rem; padding-top:1.1rem; color:#9AA2AA; font-size:.79rem; line-height:1.65; }
.signin-page .signin-help p + p { margin-top:.6rem; }

.signin-page .signin-footer {
  position:relative; z-index:2;
  border-top:1px solid var(--sg-line);
  background:var(--sg-bg);
}
.signin-page .signin-footer .container {
  max-width:var(--sg-frame); margin:0 auto; padding:1.1rem var(--gut) 1.3rem;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem 1.5rem;
  font-size:.78rem; line-height:1.5; color:var(--sg-muted);
}

@media (max-width:900px) {
  .signin-page .signin-hero { grid-template-columns:1fr; gap:2rem; }
  .signin-page .signin-copy h1 { max-width:none; }
  .signin-page .signin-card { max-width:none; justify-self:stretch; }
}
@media (max-width:420px) {
  .signin-page .signin-hero { padding:1.25rem .9rem 2rem; }
  .signin-page .signin-card { padding:1.4rem 1.15rem; }
}
