body.auth-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 20% 0,rgba(39,99,164,.2),transparent 42%),#080d15;
  color: #f4f7fc;
}
.auth-layout {
  width: min(1480px,100%);
  min-height: 100vh;
  margin: auto;
  padding: clamp(14px,3vw,42px);
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(400px,.92fr);
  gap: clamp(18px,3vw,44px);
  align-items: stretch;
}
.auth-story {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - clamp(28px,6vw,84px));
  padding: clamp(28px,5vw,72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(163,190,223,.14);
  border-radius: 24px;
  background: linear-gradient(150deg,rgba(15,31,50,.94),rgba(10,17,28,.97) 65%);
  box-shadow: 0 22px 70px rgba(0,0,0,.23);
}
.auth-story:before,.auth-story:after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}
.auth-story:before {
  width: 540px;
  height: 540px;
  right: -190px;
  top: -210px;
  background: radial-gradient(circle,rgba(50,137,228,.17),transparent 68%);
}
.auth-story:after {
  width: 420px;
  height: 420px;
  left: -210px;
  bottom: -250px;
  background: radial-gradient(circle,rgba(119,132,238,.12),transparent 68%);
}
.auth-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
}
.auth-brand img {
  display: block;
  width: 152px;
  height: auto;
}
.auth-story-copy {
  max-width: 620px;
  margin: 70px 0 30px;
}
.auth-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: #91c3f8;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.auth-story h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.3rem,4.8vw,4.5rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 690;
}
.auth-story p {
  max-width: 520px;
  margin: 20px 0 0;
  color: #aebdd0;
  font-size: 1rem;
  line-height: 1.75;
}
.auth-story-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #91a1b6;
  font-size: .76rem;
}
.auth-story-foot:before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #6fd5a9;
  box-shadow: 0 0 14px rgba(111,213,169,.45);
}
.auth-panel {
  width: 100%;
  max-width: 620px;
  align-self: center;
  justify-self: center;
  padding: clamp(22px,4vw,44px);
  border: 1px solid rgba(158,183,215,.16);
  border-radius: 20px;
  background: linear-gradient(160deg,rgba(16,26,40,.98),rgba(11,18,28,.98));
  box-shadow: 0 20px 64px rgba(0,0,0,.25);
}
.auth-panel h2 {
  margin: 0;
  font-size: clamp(1.55rem,2.4vw,2rem);
  letter-spacing: -.035em;
}
.auth-intro {
  margin: 9px 0 23px;
  color: #a5b5ca;
  font-size: .9rem;
  line-height: 1.65;
}
.auth-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,113,129,.26);
  border-radius: 10px;
  background: rgba(255,113,129,.08);
  color: #ffc2c9;
  font-size: .85rem;
}
.auth-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 15px;
}
.auth-form label {
  min-width: 0;
}
.auth-form .full {
  grid-column: 1/-1;
}
.auth-form input:not([type=checkbox]) {
  min-height: 46px;
  background: #090f18;
  border-color: rgba(162,188,220,.19);
}
.auth-form input:focus-visible {
  border-color: #77b8fa;
  box-shadow: 0 0 0 3px rgba(77,156,255,.17);
}
.auth-password-field {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.auth-password-field input {
  min-width: 0;
  flex: 1;
  border-radius: 9px 0 0 9px!important;
}
.auth-password-toggle {
  min-width: 82px;
  padding: 0 12px;
  border: 1px solid rgba(162,188,220,.19);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background: #121c29;
  color: #bed1e7;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}
.auth-password-toggle:hover {
  background: #1a2a3e;
  color: #fff;
}
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
}
.auth-actions a,.auth-back {
  color: #afc6e1;
  font-size: .8rem;
  text-decoration: underline;
  text-decoration-color: rgba(175,198,225,.3);
  text-underline-offset: 3px;
}
.auth-actions a:hover,.auth-back:hover {
  color: #fff;
}
.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}
.auth-note {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(158,183,215,.12);
  color: #8394aa;
  font-size: .72rem;
  line-height: 1.6;
}
.auth-panel details {
  padding: 13px;
  border: 1px solid rgba(158,183,215,.15);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}
.auth-panel details summary {
  color: #bdd0e7;
  cursor: pointer;
  font-weight: 700;
}
.auth-panel details p {
  color: #a8b8cc;
  font-size: .82rem;
  line-height: 1.7;
}
.auth-inline-panel {
  max-width: 760px;
}
.auth-inline-panel .auth-password-field {
  max-width: 460px;
}
@media(max-width:900px) {
  .auth-layout {
    grid-template-columns: minmax(0,1fr);
    max-width: 720px;
    gap: 14px;
    align-content: start;
  }
  .auth-story {
    min-height: 0;
    padding: 22px 24px;
    border-radius: 17px;
  }
  .auth-story-copy {
    margin: 27px 0 10px;
  }
  .auth-story h1 {
    font-size: clamp(1.7rem,7vw,2.5rem);
  }
  .auth-story p {
    margin-top: 10px;
    font-size: .88rem;
  }
  .auth-story-foot {
    display: none;
  }
  .auth-brand img {
    width: 122px;
  }
  .auth-panel {
    max-width: none;
    justify-self: stretch;
    padding: clamp(21px,5vw,34px);
    border-radius: 16px;
  }
}
@media(max-width:520px) {
  .auth-layout {
    padding: 10px;
  }
  .auth-story {
    padding: 18px;
  }
  .auth-story-copy {
    margin: 21px 0 3px;
  }
  .auth-kicker {
    margin-bottom: 10px;
    font-size: .61rem;
  }
  .auth-story h1 {
    font-size: 1.7rem;
  }
  .auth-story p {
    font-size: .8rem;
    line-height: 1.55;
  }
  .auth-brand img {
    width: 108px;
  }
  .auth-panel {
    padding: 21px 17px;
  }
  .auth-form {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .auth-form .full {
    grid-column: auto;
  }
  .auth-actions {
    gap: 9px 15px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .auth-story:before,.auth-story:after {
    filter: none;
  }
}
.auth-checkbox {
  display: flex!important;
  align-items: center;
  gap: 10px;
}
.auth-checkbox input[type=checkbox] {
  width: 18px!important;
  height: 18px;
  flex: none;
  accent-color: #559fe8;
}

/* Shared login and invitation experience. */
.auth-story {
  background: radial-gradient(circle at 76% 28%, rgba(63, 152, 235, .22), transparent 34%),
    linear-gradient(155deg, #102441, #0b1424 62%, #090f1c);
}
.auth-story-copy { margin-block: auto; padding-block: 54px; }
.auth-panel { border-color: rgba(125, 169, 219, .22); }
.auth-panel .auth-intro { max-width: 52ch; }
.auth-panel .auth-form { margin-top: 24px; }
.auth-form input:focus-visible {
  outline: 2px solid #71b5ff;
  outline-offset: 2px;
  border-color: #71b5ff;
}
.auth-form .auth-submit { min-height: 52px; margin-top: 8px; }
.auth-actions { border-top: 1px solid rgba(159, 192, 230, .14); padding-top: 19px; }
@media (max-width: 900px) {
  .auth-story-copy { margin: 24px 0 8px; padding: 0; }
}

/* Consistent account pages from sign in through password recovery. */
body.auth-body {
  background:
    radial-gradient(circle at 15% 7%, rgba(40, 101, 175, .22), transparent 38%),
    radial-gradient(circle at 91% 92%, rgba(50, 74, 137, .15), transparent 42%),
    #07101d;
}
.auth-layout {
  width: min(1440px, 100%);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(18px, 3.4vw, 50px);
}
.auth-story {
  min-width: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(81, 147, 226, .23), transparent 35%),
    linear-gradient(148deg, #132b49, #0a182b 61%, #091423);
  border: 1px solid rgba(155, 190, 232, .22);
  box-shadow: 0 24px 70px rgba(2, 7, 16, .3);
}
.auth-story::before {
  width: 310px;
  height: 310px;
  top: 17%;
  right: 8%;
  background: transparent;
  border: 1px solid rgba(161, 206, 251, .18);
  box-shadow: 0 0 0 48px rgba(112, 176, 238, .025), 0 0 0 106px rgba(112, 176, 238, .017);
}
.auth-story::after { display: none; }
.auth-brand img { width: clamp(128px, 15vw, 174px); }
.auth-story-copy { margin: auto 0; padding: 56px 0; }
.auth-story h1 { max-width: 640px; font-size: clamp(2.2rem, 4.2vw, 4.2rem); line-height: 1.08; }
.auth-story p { color: #bfcee1; }
.auth-story-foot { color: #b2c4dc; }
.auth-panel {
  max-width: 580px;
  border: 1px solid rgba(158, 190, 228, .22);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(19, 33, 52, .98), rgba(12, 23, 38, .99));
  box-shadow: 0 24px 58px rgba(2, 8, 17, .26);
}
.auth-kicker { color: #9dcaff; }
.auth-panel h2 { font-size: clamp(1.65rem, 2.3vw, 2.05rem); }
.auth-panel .auth-intro { color: #b3c2d5; }
.auth-form label { color: #d2deee; }
.auth-form input:not([type=checkbox]) { min-height: 51px; background: #0b192b; border-color: rgba(158, 190, 228, .24); }
.auth-password-toggle { background: #17283e; border-color: rgba(158, 190, 228, .24); }
.auth-submit { min-height: 52px; background: linear-gradient(130deg, #367fd1, #5aa5ed); }
.auth-actions a,.auth-back { color: #b6d8ff; }
.auth-note { color: #9eafc7; }
@media (max-width: 1024px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    min-height: 100vh;
    gap: 14px;
    align-content: start;
  }
  .auth-story { min-height: 0; padding: clamp(22px, 4vw, 34px); }
  .auth-story-copy { padding: 20px 0 4px; margin: 0; }
  .auth-story h1 { max-width: 580px; font-size: clamp(1.8rem, 4vw, 2.55rem); }
  .auth-story p { margin-top: 12px; }
  .auth-panel { max-width: none; }
}
@media (max-width: 600px) {
  .auth-layout { padding: 10px; }
  .auth-story { padding: 19px; border-radius: 17px; }
  .auth-brand img { width: 116px; }
  .auth-story-copy { padding: 19px 0 0; }
  .auth-story h1 { font-size: clamp(1.62rem, 7vw, 2.12rem); }
  .auth-story p { font-size: .85rem; line-height: 1.55; }
  .auth-panel { padding: 23px 18px; border-radius: 17px; }
  .auth-form { grid-template-columns: 1fr; }
  .auth-form .full { grid-column: auto; }
}
