/* Arlong account entry: a quiet landscape, a glass panel, and Apple-style motion. */

@font-face{font-family:Inter;src:url('/static/fonts/inter-variable.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Newsreader;src:url('/static/fonts/newsreader-regular.ttf') format('truetype');font-weight:400;font-display:swap}

:root{
  --auth-ink:#151c17;
  --auth-ink-soft:#26332a;
  --auth-muted:#5f6b61;
  --auth-faint:#828d84;
  --auth-line:rgba(21,32,24,.13);
  --auth-paper:#f7f8f2;
  --auth-green:#17251c;
  --auth-sage:#6f8a6d;
  --auth-radius:26px;
  --auth-ease:cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}

html{background:#0c150f}

body.auth-page{
  margin:0;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  position:relative;
  isolation:isolate;
  overflow-x:hidden;
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  line-height:1.55;
  letter-spacing:-.005em;
  color:var(--auth-ink);
  background:#0c150f!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* The photograph, slowly drifting. */
body.auth-page::before{
  content:"";
  position:fixed;
  inset:-5%;
  z-index:-3;
  background:url('/static/cypress-field.webp') center 56%/cover no-repeat;
  filter:saturate(.92) contrast(1.04) brightness(.9) hue-rotate(-6deg);
  transform:scale(1.06);
  animation:auth-drift 30s ease-in-out infinite alternate;
}

/* Colour grading and legibility scrims. */
body.auth-page::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(120% 78% at 80% 4%,rgba(214,232,196,.22),transparent 58%),
    linear-gradient(102deg,rgba(8,17,12,.94) 0%,rgba(8,17,12,.82) 32%,rgba(8,17,12,.42) 58%,rgba(8,17,12,.6) 100%),
    linear-gradient(to top,rgba(5,12,8,.82),rgba(5,12,8,.18) 46%,transparent 72%);
}

.auth-grain{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.14;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.55'/></svg>");
}

/* Top bar */
.auth-top{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1460px;
  margin:0 auto;
  padding:clamp(20px,3vw,32px) clamp(20px,4.5vw,56px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  animation:auth-fade .8s var(--auth-ease) both;
}

.auth-brand{
  font-family:Newsreader,Georgia,'Times New Roman',serif!important;
  font-weight:400!important;
  font-size:31px;
  line-height:1;
  letter-spacing:-.045em!important;
  color:#f4f7ee!important;
  text-decoration:none;
  transition:opacity .3s ease,color .3s ease;
}
.auth-brand:hover{opacity:.72;color:#fff!important}

.auth-top-nav{display:flex;align-items:center;gap:clamp(14px,2vw,28px);font-size:12px;color:rgba(242,247,236,.66)}
.auth-top-nav a{color:inherit;text-decoration:none;padding:6px 2px;transition:color .25s ease}
.auth-top-nav a:hover{color:#fff}
.auth-top-nav .auth-top-cta{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 14px;
  border:1px solid rgba(244,249,238,.24);
  border-radius:999px;
  color:#f3f7ed;
  transition:background .25s ease,border-color .25s ease,transform .25s ease;
}
.auth-top-nav .auth-top-cta:hover{background:rgba(255,255,255,.09);border-color:rgba(244,249,238,.44);transform:translateY(-1px)}

/* Stage */
.auth-stage{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1280px;
  margin:0 auto;
  flex:1;
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(376px,430px);
  align-items:center;
  gap:clamp(30px,5vw,84px);
  padding:clamp(8px,2vh,36px) clamp(20px,4.5vw,56px) clamp(26px,5vh,58px);
}

/* Editorial column */
.auth-story{max-width:560px;color:#f3f7ed;padding-bottom:4px}
.auth-story>*{opacity:0;animation:auth-rise .85s var(--auth-ease) both}
.auth-story>*:nth-child(1){animation-delay:.1s}
.auth-story>*:nth-child(2){animation-delay:.18s}
.auth-story>*:nth-child(3){animation-delay:.27s}
.auth-story>*:nth-child(4){animation-delay:.37s}

.auth-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 clamp(18px,2.4vh,26px);
  font-size:10px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(238,244,232,.7);
}
.auth-eyebrow::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#bbd6a0;
  box-shadow:0 0 0 4px rgba(187,214,160,.16);
}

.auth-headline{
  margin:0 0 clamp(18px,2.4vh,26px);
  font-family:Newsreader,Georgia,'Times New Roman',serif;
  font-weight:400;
  font-size:clamp(44px,5.2vw,76px);
  line-height:.98;
  letter-spacing:-.045em;
  color:#f6f9f1;
}
.auth-headline em{font-style:italic;color:#cfe2bd}

.auth-lede{
  max-width:43ch;
  margin:0;
  font-size:clamp(14px,1.15vw,16px);
  line-height:1.66;
  color:rgba(236,242,230,.74);
}

.auth-proof{
  display:flex;
  flex-wrap:wrap;
  gap:clamp(24px,3vw,46px);
  margin:clamp(26px,4vh,40px) 0 0;
  padding:clamp(18px,2.6vh,24px) 0 0;
  border-top:1px solid rgba(240,245,235,.18);
  list-style:none;
}
.auth-proof strong{
  display:block;
  font-family:Newsreader,Georgia,serif;
  font-weight:400;
  font-size:clamp(28px,2.6vw,38px);
  line-height:1;
  letter-spacing:-.03em;
  color:#f5f8ef;
  font-variant-numeric:tabular-nums;
}
.auth-proof strong small{font-size:.55em;letter-spacing:0;margin-left:1px;opacity:.72}
.auth-proof span{display:block;margin-top:8px;max-width:17ch;font-size:11px;line-height:1.45;color:rgba(232,240,226,.56)}

/* Glass card */
.auth-card{
  position:relative;
  width:100%;
  max-width:430px;
  justify-self:end;
  padding:clamp(24px,3vw,36px);
  border-radius:var(--auth-radius);
  border:1px solid rgba(255,255,255,.55);
  background:linear-gradient(158deg,rgba(253,254,250,.95),rgba(245,248,240,.87));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 40px 120px -34px rgba(4,13,8,.8),
    0 14px 40px -18px rgba(4,13,8,.4);
  backdrop-filter:blur(30px) saturate(1.12);
  -webkit-backdrop-filter:blur(30px) saturate(1.12);
  animation:auth-card-in .95s var(--auth-ease) both;
  animation-delay:.08s;
}
.auth-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(152deg,rgba(255,255,255,.95),rgba(255,255,255,.08) 42%,rgba(255,255,255,.55));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  opacity:.75;
  pointer-events:none;
}
.auth-card>*{position:relative;opacity:0;animation:auth-rise .7s var(--auth-ease) both}
.auth-card>*:nth-child(1){animation-delay:.2s}
.auth-card>*:nth-child(2){animation-delay:.25s}
.auth-card>*:nth-child(3){animation-delay:.3s}
.auth-card>*:nth-child(4){animation-delay:.35s}
.auth-card>*:nth-child(5){animation-delay:.4s}
.auth-card>*:nth-child(6){animation-delay:.45s}
.auth-card>*:nth-child(7){animation-delay:.5s}
.auth-card>*:nth-child(8){animation-delay:.55s}
.auth-card>*:nth-child(n+9){animation-delay:.6s}

.auth-card-head{margin:0 0 2px}
.auth-kicker{
  margin:0 0 11px;
  font-size:9px;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#7d8b7f;
}
.auth-card h1{
  margin:0;
  font-family:Newsreader,Georgia,'Times New Roman',serif;
  font-weight:400;
  font-size:clamp(30px,3.1vw,38px);
  line-height:1.04;
  letter-spacing:-.032em;
  color:#161d17;
}
.auth-intro{margin:12px 0 0;font-size:12.5px;line-height:1.62;color:var(--auth-muted)!important}

/* Segmented mode switch */
.auth-modes{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  margin:22px 0 0;
  padding:4px;
  border-radius:999px;
  border:1px solid rgba(21,32,24,.06);
  background:rgba(21,32,24,.06);
}
.auth-mode{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  height:36px;
  border-radius:999px;
  font-size:12px;
  font-weight:500;
  color:#68766b;
  text-decoration:none;
  transition:color .25s ease;
}
.auth-mode:hover{color:#26332a}
.auth-mode[aria-current="page"]{color:#142018;font-weight:600}
.auth-modes::after{
  content:"";
  position:absolute;
  top:4px;
  bottom:4px;
  left:4px;
  width:calc(50% - 4px);
  border-radius:999px;
  background:#fff;
  box-shadow:0 1px 2px rgba(10,18,12,.1),0 6px 16px rgba(10,18,12,.07);
  transition:transform .48s var(--auth-ease);
}
.auth-card.is-signup .auth-modes::after{transform:translateX(100%)}

/* Alerts */
.auth-alert{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:16px 0 0;
  padding:11px 13px;
  border-radius:11px;
  border:1px solid rgba(156,48,44,.24);
  background:rgba(255,246,244,.92);
  color:#8c332f;
  font-size:11.5px;
  line-height:1.55;
}
.auth-alert svg{flex:none;width:14px;height:14px;margin-top:1px}

/* Google */
.auth-google{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  width:100%;
  height:46px;
  margin-top:20px;
  border-radius:13px;
  border:1px solid rgba(21,32,24,.14);
  background:rgba(255,255,255,.74);
  color:#20291f;
  font-size:12.5px;
  font-weight:500;
  text-decoration:none;
  transition:transform .22s ease,background .22s ease,box-shadow .28s ease,border-color .22s ease;
}
.auth-google:hover{
  transform:translateY(-1px);
  background:#fff;
  border-color:rgba(21,32,24,.2);
  box-shadow:0 10px 24px -12px rgba(10,20,14,.45);
  color:#111;
}
.auth-google:active{transform:translateY(0)}
.auth-google svg{width:17px;height:17px;flex:none}

.auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:20px 0 2px;
  font-size:10px;
  color:#8b958c;
}
.auth-divider span{position:static;padding:0;background:transparent!important;white-space:nowrap}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:rgba(21,32,24,.12)}

/* Fields */
.auth-form{display:flex;flex-direction:column;gap:14px;margin-top:16px}
.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:11.5px;font-weight:500;color:#404c43}
.field input{
  width:100%;
  height:44px;
  padding:0 13px;
  border-radius:12px;
  border:1px solid rgba(21,32,24,.15);
  background:rgba(255,255,255,.8)!important;
  color:#151d17!important;
  font-family:Inter,Arial,sans-serif;
  font-size:13px;
  appearance:none;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.field input::placeholder{color:#9aa39b}
.field input:hover{border-color:rgba(21,32,24,.24);background:#fff!important}
.field input:focus{
  outline:none!important;
  border-color:#51725a!important;
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(81,114,90,.14);
}
.field input:autofill{box-shadow:0 0 0 40px #fff inset!important}

.password-wrap{position:relative}
.password-wrap input{padding-right:62px}
.password-toggle{
  position:absolute;
  top:50%;
  right:7px;
  transform:translateY(-50%);
  padding:8px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#68766b;
  font-family:Inter,Arial,sans-serif;
  font-size:9.5px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
  transition:color .2s ease,background .2s ease;
}
.password-toggle:hover{color:#1d2a21;background:rgba(21,32,24,.06)}
.password-toggle:focus-visible{outline:2px solid #51725a!important;outline-offset:1px}

/* Legal */
.terms-check{
  display:flex;
  gap:9px;
  align-items:flex-start;
  margin:2px 0 0;
  font-size:10.5px;
  line-height:1.6;
  color:#6b766d;
}
.terms-check input{
  flex:none;
  width:15px;
  height:15px;
  margin:1px 0 0;
  border-radius:4px;
  border:1px solid #b7c1b8;
  background:#fff!important;
  accent-color:#243a2b;
}
.terms-check input:focus-visible{outline:2px solid #51725a!important;outline-offset:2px}
.terms-check a{color:#2b4433;text-underline-offset:3px}

/* Primary action */
.auth-submit{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  height:48px;
  margin-top:6px;
  border:1px solid #16251b;
  border-radius:13px;
  background:#16251b;
  color:#f6f9f2;
  font-family:Inter,Arial,sans-serif;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  overflow:hidden;
  transition:transform .22s ease,background .22s ease,box-shadow .28s ease;
}
.auth-submit:hover{background:#22382a;transform:translateY(-1px);box-shadow:0 14px 30px -12px rgba(14,28,19,.85)}
.auth-submit:active{transform:translateY(0)}
.auth-submit:focus-visible{outline:2px solid #51725a!important;outline-offset:3px}
.auth-submit .arrow{transition:transform .3s var(--auth-ease)}
.auth-submit:hover .arrow{transform:translateX(3px)}
.auth-submit::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,transparent 28%,rgba(255,255,255,.17) 48%,transparent 68%);
  transform:translateX(-130%);
  transition:transform .85s var(--auth-ease);
}
.auth-submit:hover::after{transform:translateX(130%)}
.auth-submit.is-busy{opacity:.82;cursor:progress}

/* Secondary links */
.auth-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;font-size:11px;color:#6d786e}
.auth-meta a{color:#2b4433;text-underline-offset:3px}
.auth-meta .auth-meta-note{color:#828d84}
.auth-switch{margin:16px 0 0;text-align:center;font-size:11.5px;color:#6d786e}
.auth-switch a{color:#22382a;font-weight:500;text-underline-offset:3px}
.auth-footnote{margin:18px 0 0;font-size:10.5px;line-height:1.72;color:#7c877e}
.auth-footnote a{color:#3a5241;text-underline-offset:3px}
.auth-invite-skip{margin-top:12px}
.text-button{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 0 2px;
  border:0;
  border-bottom:1px solid rgba(43,68,51,.34);
  background:transparent!important;
  color:#405846!important;
  font-family:Inter,Arial,sans-serif;
  font-size:11px;
  cursor:pointer;
  transition:color .2s ease,border-color .2s ease;
}
.text-button:hover{color:#16251b!important;border-color:#16251b}

/* Invite page */
.auth-companion{width:100%;max-width:430px;justify-self:end}
.auth-companion h1{margin:0;font-family:Newsreader,Georgia,serif;font-weight:400;font-size:clamp(30px,3.1vw,38px);line-height:1.04;letter-spacing:-.032em;color:#161d17}
.auth-companion .auth-form{margin-top:20px}
a.auth-submit{text-decoration:none}
.account-choice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:10px;
  padding:15px 16px;
  border:1px solid rgba(21,32,24,.12);
  border-radius:14px;
  background:rgba(255,255,255,.6);
  text-decoration:none;
  transition:background .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease;
}
.account-choice:hover{background:#fff;border-color:rgba(21,32,24,.2);transform:translateY(-1px);box-shadow:0 12px 26px -18px rgba(10,20,14,.55);color:inherit}
.account-choice strong{display:block;font-size:13px;font-weight:600;color:#1c2a21}
.account-choice small{display:block;margin-top:5px;font-size:11px;line-height:1.55;color:#6d786e}
.account-choice .arrow{flex:none;font-size:17px;color:#546656;transition:transform .25s var(--auth-ease)}
.account-choice:hover .arrow{transform:translateX(3px)}
.welcome-benefits{display:grid;gap:9px;margin:18px 0 4px}
.welcome-benefits>div{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:0;
  padding:13px 15px;
  border:1px solid rgba(21,32,24,.1);
  border-radius:13px;
  background:rgba(255,255,255,.62);
}
.welcome-benefits>div>span{padding-top:1px;font-size:9px;font-weight:600;letter-spacing:.08em;color:#7a877a}
.welcome-benefits h2{margin:0 0 4px;font-size:12px;font-weight:600;color:#23332a}
.welcome-benefits p{margin:0;font-size:11px;line-height:1.6;color:#6d786e}
.invite-code-entry{margin-top:14px;font-size:11.5px;color:#6b766d}
.invite-code-entry summary{cursor:pointer;margin-bottom:10px;color:#405846}
.invite-code-entry label{display:block;margin-bottom:6px}
.no-invite-choice{margin-top:24px;padding-top:20px;border-top:1px solid rgba(21,32,24,.1)}
.no-invite-choice h2{margin:0 0 8px;font-size:12px;font-weight:600;color:#26332a}
.no-invite-choice p{margin:0 0 14px;font-size:11.5px;line-height:1.65;color:#6d786e}
.no-invite-choice a{color:#2b4433}

/* Footer */
.auth-footer{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1460px;
  margin:0 auto;
  padding:0 clamp(20px,4.5vw,56px) clamp(18px,3vh,26px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  font-size:10.5px;
  color:rgba(236,242,230,.48);
  animation:auth-fade 1s var(--auth-ease) .35s both;
}
.auth-footer nav{display:flex;gap:18px}
.auth-footer a{color:inherit;text-decoration:none;transition:color .25s ease}
.auth-footer a:hover{color:rgba(255,255,255,.86)}

/* Motion */
@keyframes auth-drift{from{transform:scale(1.06) translate3d(0,0,0)}to{transform:scale(1.13) translate3d(-1.4%,-1%,0)}}
@keyframes auth-fade{from{opacity:0}to{opacity:1}}
@keyframes auth-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes auth-card-in{from{opacity:0;transform:translateY(28px) scale(.982);filter:blur(7px)}to{opacity:1;transform:none;filter:none}}

/* Responsive */
@media(max-width:1080px){
  .auth-stage{grid-template-columns:minmax(0,1fr) minmax(360px,420px);gap:40px}
  .auth-headline{font-size:clamp(40px,4.8vw,60px)}
}

@media(max-width:880px){
  .auth-story{display:none}
  .auth-stage{grid-template-columns:minmax(0,1fr);justify-items:center;padding-top:clamp(4px,1vh,16px)}
  .auth-card,.auth-companion{justify-self:center;max-width:440px}
  .auth-lede{max-width:38ch}
  body.auth-page::after{
    background:
      radial-gradient(130% 60% at 78% 2%,rgba(214,232,196,.18),transparent 60%),
      linear-gradient(180deg,rgba(8,17,12,.62) 0%,rgba(8,17,12,.5) 26%,rgba(8,17,12,.78) 62%,rgba(8,17,12,.92) 100%);
  }
}

@media(max-width:560px){
  .auth-top{padding:18px 18px 8px}
  .auth-brand{font-size:27px}
  .auth-top-nav{gap:12px;font-size:11px}
  .auth-top-nav a:not(.auth-top-cta){display:none}
  .auth-top-nav .auth-top-cta{padding:7px 12px;white-space:nowrap}
  .auth-stage{padding:10px 14px 26px}
  .auth-card,.auth-companion{
    max-width:none;
    padding:22px 20px calc(20px + env(safe-area-inset-bottom,0px));
    border-radius:22px;
  }
  .auth-card h1,.auth-companion h1{font-size:30px}
  .auth-modes{margin-top:18px}
  .auth-google{height:44px;margin-top:18px}
  .field input{height:43px;font-size:16px}
  .auth-submit{height:46px}
  .auth-footer{padding:0 18px 20px;flex-direction:column;align-items:center;gap:9px;text-align:center;font-size:10px}
  .auth-footer nav{gap:14px;white-space:nowrap}
}

@media(max-width:380px){
  .auth-card{padding:20px 16px}
}

@media(max-height:1000px) and (min-width:881px){
  .auth-stage{padding-top:6px;padding-bottom:clamp(16px,2.6vh,30px)}
  .auth-card{padding:24px 28px}
  .auth-card h1{font-size:clamp(28px,2.8vw,34px)}
  .auth-intro{margin-top:9px}
  .auth-modes{margin-top:14px}
  .auth-modes .auth-mode{height:34px}
  .auth-google{margin-top:14px;height:42px}
  .auth-divider{margin:12px 0 0}
  .auth-form{gap:10px;margin-top:12px}
  .field{gap:6px}
  .field input{height:42px}
  .terms-check{font-size:9.5px;line-height:1.5}
  .auth-submit{height:45px;margin-top:4px}
  .auth-meta{margin-top:9px}
  .auth-switch{margin-top:11px}
  .auth-footnote{margin-top:11px;line-height:1.6}
  .auth-proof{margin-top:clamp(18px,3vh,28px);padding-top:18px}
}

@media(prefers-reduced-motion:reduce){
  body.auth-page::before{animation:none;transform:scale(1.06)}
  .auth-top,.auth-story>*,.auth-card,.auth-card>*,.auth-footer{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}
  .auth-modes::after,.auth-submit,.auth-submit::after,.auth-submit .arrow,.auth-google{transition-duration:.01ms!important}
}
