/* Login and signup share one charcoal / mint palette. */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #edf3f1;
  background: #0b1012;
  font-synthesis: none;
  --muted: #a0aeaf;
  --accent: #a1ebd4;
  --line: #ffffff15;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 20% 10%, #60ccb221, transparent 58%),
              radial-gradient(ellipse at 90% 92%, #9c8ecc1f, transparent 51%), #0d151c;
}
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.auth-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 1fr);
  max-width: 1800px;
  margin: auto;
  padding: 20px;
  gap: 20px;
}
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 40px);
  padding: 35px clamp(32px, 4.3vw, 76px) 30px;
  border: 1px solid #b6f5df12;
  border-radius: 26px;
  background: radial-gradient(ellipse at 72% 53%, #21463e55, transparent 55%),
              radial-gradient(ellipse at 10% 4%, #27463f35, transparent 60%), #111d1eaa;
}
.intro::after {
  content: "";
  position: absolute;
  inset: auto -15% -55% -15%;
  height: 95%;
  border: 1px solid #c2f3e20a;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.wordmark { display: flex; align-items: center; gap: 11px; width: max-content; font-size: 25px; font-weight: 650; letter-spacing: .13em; text-decoration: none; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.intro-content { position: relative; margin: auto 0; padding: 55px 0 35px; max-width: 530px; }
.eyebrow { display: block; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .2em; color: #b0c5c0; margin-bottom: 23px; }
.intro h1 { font-size: clamp(38px, 4.2vw, 64px); font-weight: 500; line-height: 1.1; letter-spacing: -.052em; margin: 0 0 23px; }
.intro h1 span { color: #b2ddcf; }
.intro-content > p { max-width: 350px; margin: 0; color: #a2b7b3; font-size: 14px; line-height: 1.85; }
.orb-stage { display: grid; place-items: center; height: 255px; margin: 8px 0 12px; }
.orb {
  position: relative; width: 184px; height: 184px; overflow: hidden;
  border-radius: 50%; border: 1px solid #c8ffee45;
  background: radial-gradient(ellipse at 22% 18%, #d9fff237, transparent 45%), #234f4780;
  box-shadow: inset 0 0 24px #d5fff20c, inset -13px -19px 26px #081d1c70,
              0 0 75px #7de8bc14, 0 30px 60px #00000018;
  animation: orb-float 9s ease-in-out infinite;
}
.orb::before {
  content: ""; position: absolute; inset: -24%; border-radius: 42%;
  background: radial-gradient(ellipse at 35% 30%, #bce8d4d9, transparent 44%),
              radial-gradient(ellipse at 67% 68%, #45bca4c9, transparent 49%),
              radial-gradient(ellipse at 25% 80%, #8cb8b566, transparent 42%);
  filter: blur(16px); animation: aurora-drift 19s ease-in-out infinite alternate;
}
.orb::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid #dbfff214; box-shadow: inset 8px 8px 20px #e0fff21a; }
.orb-light { position: absolute; z-index: 1; inset: 6% 12% auto; height: 37%; background: linear-gradient(155deg, #effff539, transparent 65%); border-radius: 50%; transform: rotate(-27deg); filter: blur(7px); }
.intro-tags { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.intro-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid #c5f7e214; border-radius: 9px; background: #e2fff804; color: #b8cdc8; font-size: 11px; }
.intro-tags svg { width: 13px; height: 13px; color: #acd4c7; }
.intro-foot { display: flex; align-items: center; gap: 8px; color: #8aa39c; font-size: 11px; line-height: 1.6; margin: 0; }
.intro-foot span { width: 4px; height: 4px; border-radius: 50%; background: #7da99b; }
.form-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(28px, 4vw, 72px) 20px;
  background: linear-gradient(150deg, #e1f8f50a, transparent 56%), #101724bd;
  border: 1px solid #c1d5f230;
  border-radius: 26px;
  box-shadow: inset 0 1px #ffffff0c, 0 18px 58px #070c121f;
}
.form-card { width: 100%; max-width: 390px; margin: auto 0; }
.form-kicker { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #96b1a8; letter-spacing: .03em; margin-bottom: 19px; }
.form-kicker span { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
h2 { font-weight: 550; font-size: 33px; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 12px; }
.form-description { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #101719; margin-bottom: 24px; }
.auth-tabs a { text-align: center; text-decoration: none; padding: 11px; border-radius: 8px; color: #9babad; font-size: 12px; font-weight: 550; transition: background .18s, color .18s; }
.auth-tabs a:hover { color: #edf3f1; }
.auth-tabs a[aria-current=page] { background: #24312f; color: #d7f7ea; box-shadow: 0 1px 4px #0003, inset 0 0 0 1px #c7f5df0d; }
.google-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 49px; border: 1px solid #b8cecb29; border-radius: 11px; background: #151e20; color: #e7eeee; font-size: 12px; font-weight: 550; transition: background .18s, border-color .18s; }
.google-button:hover:enabled { background: #1d292b; border-color: #b8cecb55; }
.google-button:disabled { opacity: .45; }
.setup-note { color: #a2afaf; font-size: 11px; line-height: 1.6; margin: 11px 0 0; }
.beta-invite-field {padding:16px;border:1px solid #9de8d433;border-radius:13px;background:linear-gradient(120deg,#16382d66,#342d4c44);}
.beta-invite-field input {letter-spacing:.025em;font-size:12px;}
.beta-invite-field .field-help {margin-bottom:0;}
.beta-auth-note {font-size:11px;color:#a3b6b0;line-height:1.7;margin:0 0 18px;}
.beta-auth-note a {color:#b5ebd6;text-underline-offset:3px;}
.divider { display: flex; align-items: center; gap: 13px; margin: 25px 0; color: #8e9e9f; font-size: 10px; white-space: nowrap; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.field { margin-bottom: 19px; }
.field label { display: block; font-size: 12px; font-weight: 550; color: #c3d0cf; margin-bottom: 9px; }
.optional { font-size: 11px; color: #8f9fa0; font-weight: 400; }
input { display: block; width: 100%; min-height: 50px; padding: 13px 14px; background: #11191c; border: 1px solid #b3cbc71d; border-radius: 10px; color: #edf3f1; font-size: 13px; transition: border-color .18s, box-shadow .18s; }
input:hover { border-color: #b3cbc73b; }
input:focus { outline: none; border-color: #a1ebd499; box-shadow: 0 0 0 3px #a1ebd411; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input::placeholder { color: #7c8c8f; opacity: 1; }
input:disabled { opacity: .5; }
input:-webkit-autofill { -webkit-text-fill-color: #edf3f1; box-shadow: 0 0 0 1000px #172322 inset; caret-color: #edf3f1; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 66px; }
.password-wrap button { position: absolute; top: 0; right: 4px; height: 100%; min-width: 54px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: #a9bcb8; font-size: 11px; }
.password-wrap button:hover { color: #d8f6eb; }
.field-help { font-size: 11px; line-height: 1.6; color: #99a9a9; margin: 8px 0 0; }
.submit-button { display: flex; align-items: center; justify-content: center; position: relative; gap: 12px; width: 100%; min-height: 50px; margin-top: 25px; border: 1px solid #c7f9e734; border-radius: 10px; color: #102820; background: var(--accent); font-size: 13px; font-weight: 650; box-shadow: 0 4px 18px #86dfba0a; transition: background .18s, transform .18s; }
.submit-button span:last-child { position: absolute; right: 17px; font-size: 19px; font-weight: 400; }
.submit-button:hover:enabled { background: #b8f5df; }
.submit-button:active:enabled { transform: translateY(1px); }
.submit-button:disabled { opacity: .45; }
.form-message { color: #ffd0ce; background: #642b2f30; border: 1px solid #ffaaa337; border-radius: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.65; margin: 0 0 17px; }
.switch-note { color: #9babab; text-align: center; font-size: 12px; line-height: 1.6; margin: 23px 0 0; }
.switch-note a { color: #b3e8d6; text-decoration: none; margin-left: 3px; }
.switch-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: #8a9e9a; font-size: 10px; margin: 28px 0 0; }
.privacy-note svg { flex-shrink: 0; }
footer { display: flex; gap: 10px; padding-top: 38px; font-size: 10px; line-height: 1.6; color: #7c9390; }
footer span { color: #536b65; }
body:not(.signup-journey) .form-side :is(.form-kicker, .privacy-note, footer) { display: none; }
@keyframes orb-float { 50% { transform: translateY(-4px); } }
@keyframes aurora-drift { to { transform: rotate(28deg) translate(7%, -4%); } }
@media (min-width: 1500px) {
  .auth-shell { padding: 28px; gap: 28px; }
  .intro { min-height: calc(100svh - 56px); }
  .intro-content { max-width: 560px; }
  .orb-stage { height: 290px; }
  .orb { width: 205px; height: 205px; }
}
@media (max-width: 1000px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(370px, 1fr); padding: 14px; gap: 8px; }
  .intro { padding: 30px; min-height: calc(100svh - 28px); }
  .intro h1 { font-size: 39px; }
  .form-side { padding-inline: 30px; }
  .intro-tags { gap: 5px; }
  .intro-tags span { padding: 8px 9px; }
}
@media (max-width: 800px) {
  .auth-shell { display: block; padding: 0; }
  .intro { padding: 26px clamp(24px, 7vw, 44px) 17px; min-height: auto; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .intro::after, .intro-content, .intro-foot { display: none; }
  .wordmark { font-size: 22px; }
  .form-side {
    margin: 0 10px 10px;
    padding: 30px clamp(16px, 4vw, 26px) max(24px, env(safe-area-inset-bottom));
    min-height: calc(100svh - 85px);
    border-radius: 20px;
  }
  .form-card { max-width: 400px; }
  .auth-tabs a { display: grid; place-items: center; min-height: 44px; }
  input, .beta-invite-field input { font-size: 16px; }
  footer { padding-top: 35px; }
}
@media (max-width: 380px) {
  .intro { padding-inline: 22px; }
  .form-side { padding-top: 22px; }
  h2 { font-size: 30px; }
}
/* On a phone held sideways, show the form first instead of keeping the tall
   desktop introduction alongside it. The page remains naturally scrollable. */
@media (min-width: 801px) and (max-width: 900px) and (max-height: 480px) {
  .auth-shell { display: block; padding: 0; }
  .intro { padding: 20px 26px 12px; min-height: auto; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .intro::after, .intro-content, .intro-foot { display: none; }
  .wordmark { font-size: 22px; }
  .auth-shell .form-side { margin: 0 10px 10px; min-height: 0; padding: 16px 26px 24px; }
  .form-card { max-width: 400px; }
  footer { padding-top: 24px; }
}
@media (max-height: 780px) and (min-width: 801px) {
  .intro-content { padding-block: 30px; }
  .intro h1 { font-size: 43px; }
  .orb-stage { height: 210px; }
  .orb { width: 155px; height: 155px; }
  .form-side { padding-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
