:root {
  color-scheme: light;
  --auth-ink: #10213a;
  --auth-muted: #5b7089;
  --auth-line: rgba(194, 210, 231, 0.78);
  --auth-blue: #0e61dd;
  --auth-blue-deep: #0b4fb7;
  --auth-surface: rgba(255, 255, 255, 0.92);
  --auth-shadow: 0 28px 80px rgba(20, 54, 99, 0.13);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f4f8fe;
}

body.beta-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(66, 153, 255, 0.16), transparent 27rem),
    radial-gradient(circle at 92% 88%, rgba(82, 207, 177, 0.13), transparent 29rem),
    linear-gradient(145deg, #f9fcff 0%, #eef5ff 52%, #f8fbff 100%);
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.beta-auth-layout {
  width: min(1120px, 100%);
  min-height: min(760px, calc(100dvh - 150px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.78fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--auth-shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(145%);
}

.beta-auth-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  min-width: 0;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(226, 241, 255, 0.92), rgba(241, 249, 255, 0.8)),
    #edf6ff;
  border-right: 1px solid rgba(190, 211, 236, 0.62);
}

.beta-auth-intro::before,
.beta-auth-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.beta-auth-intro::before {
  width: 30rem;
  height: 30rem;
  top: -17rem;
  right: -13rem;
  background: rgba(40, 142, 255, 0.17);
  filter: blur(2px);
}

.beta-auth-intro::after {
  width: 23rem;
  height: 23rem;
  bottom: -12rem;
  left: -10rem;
  background: rgba(50, 196, 160, 0.12);
}

.beta-auth-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.beta-auth-brand img {
  display: block;
  width: min(280px, 78%);
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.beta-auth-brand > span {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0c66ca;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(130, 180, 235, 0.42);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.beta-auth-intro-copy {
  max-width: 32rem;
}

.beta-auth-intro-copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.65rem, 5.5vw, 5.4rem);
  font-weight: 620;
  line-height: 0.97;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.beta-auth-intro-copy p {
  max-width: 35rem;
  margin: 24px 0 0;
  color: #536b89;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-weight: 460;
  line-height: 1.65;
}

.beta-auth-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(42, 93, 151, 0.12);
}

.beta-auth-preview-orb {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #268cff, #1467e9);
  box-shadow: 0 12px 28px rgba(26, 112, 229, 0.24);
}

.beta-auth-preview svg,
.beta-auth-card svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.beta-auth-preview div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.beta-auth-preview strong {
  font-size: 0.94rem;
  font-weight: 610;
}

.beta-auth-preview div span {
  color: var(--auth-muted);
  font-size: 0.8rem;
}

.beta-auth-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16805d;
  font-size: 0.75rem;
  font-weight: 750;
}

.beta-auth-preview-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #21bd86;
  box-shadow: 0 0 0 4px rgba(33, 189, 134, 0.13);
}

.beta-auth-card {
  align-self: stretch;
  align-content: safe center;
  width: 100%;
  height: 100%;
  max-height: min(760px, calc(100dvh - 150px));
  overflow: auto;
  scrollbar-width: thin;
  display: grid;
  gap: 22px;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
}

.beta-auth-card-heading {
  display: grid;
  gap: 7px;
}

.beta-auth-card-heading h2,
.beta-auth-panel-copy h3 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.beta-auth-card-heading p,
.beta-auth-panel-copy p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.beta-auth-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 6px;
  border-radius: 19px;
  background: #edf3fa;
  border: 1px solid #dce7f3;
}

.beta-auth-tab {
  min-width: 0;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  border: 0;
  border-radius: 14px;
  color: #687a91;
  background: transparent;
  font-size: 0.83rem;
  font-weight: 590;
  line-height: 1.15;
  cursor: pointer;
  transition: 160ms ease;
  transition-property: color, background, box-shadow, transform;
}

.beta-auth-tab__icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #607891;
  background: rgba(255, 255, 255, 0.56);
  transition: 160ms ease;
  transition-property: color, background, box-shadow;
}

.beta-auth-tab__icon .beta-fa-icon {
  width: 14px;
  min-width: 14px;
  height: 14px;
  flex-basis: 14px;
  margin: 0;
  font-size: 0.76rem;
}

.beta-auth-tab__label {
  min-width: 0;
}

.beta-auth-tab:hover {
  color: #243c5c;
}

.beta-auth-tab.is-active {
  color: #123761;
  background: #fff;
  box-shadow: 0 8px 22px rgba(32, 74, 124, 0.11);
}

.beta-auth-tab.is-active .beta-auth-tab__icon {
  color: #0e61dd;
  background: #e9f2ff;
  box-shadow: inset 0 0 0 1px rgba(14, 97, 221, 0.08);
}

.beta-auth-tab:focus-visible,
.beta-auth-link-button:focus-visible,
.beta-auth-secondary:focus-visible,
.beta-auth-reveal:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.23);
  outline-offset: 2px;
}

.beta-auth-panel {
  display: grid;
  gap: 15px;
  animation: beta-auth-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.beta-auth-panel[hidden] {
  display: none;
}

.beta-auth-panel-copy {
  display: grid;
  gap: 8px;
  padding-bottom: 2px;
}

.beta-auth-panel-copy h3 {
  font-size: 1.35rem;
}

.beta-auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.beta-auth-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #2e4564;
  font-size: 0.79rem;
  font-weight: 600;
}

.beta-auth-input {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border-radius: 16px;
  color: #7085a1;
  background: #f8fbff;
  border: 1px solid var(--auth-line);
  transition: 160ms ease;
  transition-property: border-color, box-shadow, background;
}

.beta-auth-input:focus-within {
  color: var(--auth-blue);
  background: #fff;
  border-color: rgba(22, 119, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.09);
}

.beta-auth-input > svg {
  width: 19px;
  height: 19px;
}

.beta-auth-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  color: #132844;
  background: transparent;
  font-size: 0.93rem;
  font-weight: 500;
}

.beta-auth-input input::placeholder {
  color: #93a3b8;
  font-weight: 500;
}

.beta-auth-reveal {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: #72869f;
  background: transparent;
  cursor: pointer;
}

.beta-auth-reveal:hover {
  color: #155fae;
  background: #eaf3ff;
}

.beta-auth-primary,
.beta-auth-secondary {
  min-height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  font-size: 0.94rem;
  font-weight: 630;
  cursor: pointer;
  transition: 170ms ease;
  transition-property: transform, box-shadow, background, opacity;
}

.beta-auth-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, var(--auth-blue), var(--auth-blue-deep));
  box-shadow: 0 15px 30px rgba(18, 103, 222, 0.23);
}

.beta-auth-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(18, 103, 222, 0.28);
}

.beta-auth-primary svg {
  width: 18px;
  height: 18px;
}

.beta-auth-primary:disabled,
.beta-auth-secondary:disabled {
  cursor: wait;
  opacity: 0.58;
}

.beta-auth-primary[aria-busy="true"]::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: beta-auth-spin 700ms linear infinite;
}

.beta-auth-primary[aria-busy="true"] svg {
  display: none;
}

.beta-auth-secondary {
  border: 1px solid var(--auth-line);
  color: #244568;
  background: #fff;
}

.beta-auth-link-button {
  width: fit-content;
  justify-self: center;
  border: 0;
  padding: 3px 6px;
  color: #3970aa;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.beta-auth-link-button:hover {
  color: #155fae;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.beta-auth-photo {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 70px;
  border-radius: 18px;
  color: #294464;
  background: #f7faff;
  border: 1px solid var(--auth-line);
  cursor: pointer;
}

.beta-auth-photo:focus-within {
  border-color: rgba(22, 119, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.09);
}

.beta-auth-photo-preview {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  color: #2e79ce;
  background: #e8f3ff;
}

.beta-auth-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beta-auth-photo-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.beta-auth-photo-copy strong {
  font-size: 0.84rem;
}

.beta-auth-photo-copy strong small {
  color: #74879f;
  font-weight: 650;
}

.beta-auth-photo-copy > span {
  overflow: hidden;
  color: #788ba3;
  font-size: 0.72rem;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-auth-photo-action {
  color: #1268c7;
  font-size: 0.77rem;
  font-weight: 760;
}

.beta-auth-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.beta-auth-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border-radius: 17px;
  color: #284361;
  background: #f8fbff;
  border: 1px solid var(--auth-line);
  cursor: pointer;
}

.beta-auth-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.beta-auth-check {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: #fff;
  border: 1.5px solid #9fb2c9;
  box-shadow: inset 0 1px 1px rgba(30, 65, 105, 0.05);
}

.beta-auth-choice > input:checked + .beta-auth-check {
  border-color: var(--auth-blue);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E")
    center / 14px no-repeat,
    var(--auth-blue);
}

.beta-auth-choice > input:focus-visible + .beta-auth-check {
  outline: 3px solid rgba(22, 119, 255, 0.2);
  outline-offset: 2px;
}

.beta-auth-choice > span:last-child {
  display: grid;
  gap: 4px;
}

.beta-auth-choice strong {
  font-size: 0.81rem;
  line-height: 1.38;
}

.beta-auth-choice small {
  color: #71839a;
  font-size: 0.72rem;
  font-weight: 540;
  line-height: 1.46;
}

.beta-auth-choice a {
  color: #2769ad;
  font-weight: 720;
}

.beta-auth-guest-note {
  margin: -3px 0 0;
  color: #75869c;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.beta-auth-feedback {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: none;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  color: #36516f;
  background: #eef5fd;
  border: 1px solid #d5e3f4;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.beta-auth-feedback:not(:empty) {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.beta-auth-feedback[data-tone="error"] {
  color: #a13b37;
  background: #fff3f2;
  border-color: #f2cbc8;
}

.beta-auth-feedback[data-tone="success"] {
  color: #167052;
  background: #eefaf5;
  border-color: #cbe9dc;
}

.beta-auth-footer {
  width: min(1120px, 100%);
  margin: 12px auto 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #6d8098;
  font-size: 0.92rem;
  font-weight: 420;
  line-height: 1.45;
  text-align: center;
}

.beta-auth-footer__main,
.beta-auth-footer__links,
.beta-auth-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
}

.beta-auth-footer__main {
  flex-wrap: wrap;
  gap: 3px 13px;
}

.beta-auth-footer__brand,
.beta-auth-footer__links a {
  color: #526b87;
  text-decoration: none;
  text-underline-offset: 3px;
}

.beta-auth-footer__brand {
  font-weight: 540;
}

.beta-auth-footer__brand span {
  color: #7c8da2;
  font-weight: 400;
}

.beta-auth-footer__links {
  flex-wrap: wrap;
  gap: 3px 11px;
}

.beta-auth-footer__brand:hover,
.beta-auth-footer__links a:hover {
  color: #168bd2;
  text-decoration: underline;
}

.beta-auth-footer__brand:focus-visible,
.beta-auth-footer__links a:focus-visible,
.beta-auth-footer__social a:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.23);
  outline-offset: 2px;
  border-radius: 7px;
}

.beta-auth-footer__social {
  gap: 5px;
}

.beta-auth-footer__social a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #53677e;
  text-decoration: none;
}

.beta-auth-footer__social img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  opacity: 0.78;
  filter: grayscale(1) brightness(0.55);
  transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.beta-auth-footer__social a:hover img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(50%) sepia(86%) saturate(980%)
    hue-rotate(162deg) brightness(91%) contrast(91%);
  transform: translateY(-1px);
}

body.beta-auth-legal-open {
  overflow: hidden;
}

.beta-auth-legal-layer {
  position: fixed;
  z-index: 9000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(7, 22, 42, 0.64);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.beta-auth-legal-layer[hidden] {
  display: none !important;
}

.beta-auth-legal-layer.is-open {
  opacity: 1;
}

.beta-auth-legal-dialog {
  width: min(100%, 980px);
  height: min(820px, calc(100dvh - 32px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(2, 17, 37, 0.34);
  transform: translateY(12px) scale(0.985);
  transition: transform 180ms ease;
}

.beta-auth-legal-layer.is-open .beta-auth-legal-dialog {
  transform: translateY(0) scale(1);
}

.beta-auth-legal-dialog__header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 22px;
  border-bottom: 1px solid var(--auth-line);
}

.beta-auth-legal-dialog__header > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.beta-auth-legal-dialog__header span {
  color: var(--auth-blue);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beta-auth-legal-dialog__header h2 {
  margin: 0;
  overflow: hidden;
  color: var(--auth-ink);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-auth-legal-close {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d5e2f2;
  border-radius: 16px;
  color: #17304d;
  background: #f2f7fd;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.beta-auth-legal-close:hover {
  color: var(--auth-blue-deep);
  border-color: #b8d4f4;
  background: #eaf4ff;
}

.beta-auth-legal-close:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.24);
  outline-offset: 2px;
}

.beta-auth-legal-close i {
  font-size: 1.25rem;
}

.beta-auth-legal-dialog__body {
  width: 100%;
  min-height: 0;
  overflow: auto;
  padding: clamp(20px, 4vw, 42px);
  color: #3e5875;
  background: #fff;
  outline: 0;
}

.beta-auth-legal-document {
  width: min(100%, 800px);
  margin: 0 auto;
  font-size: 0.96rem;
  font-weight: 430;
  line-height: 1.72;
}

.beta-auth-legal-document :where(h1, h2, h3, h4) {
  margin: 1.3em 0 0.52em;
  color: var(--auth-ink);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.beta-auth-legal-document > :first-child {
  margin-top: 0;
}

.beta-auth-legal-document :where(p, ul, ol, dl, blockquote) {
  margin: 0 0 1em;
}

.beta-auth-legal-document a {
  color: var(--auth-blue-deep);
  font-weight: 570;
  text-underline-offset: 0.16em;
}

.beta-auth-legal-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #607790;
  font-size: 0.94rem;
  font-weight: 500;
  text-align: center;
}

.beta-auth-legal-state--error {
  color: #a33b39;
}

.beta-auth-legal-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #dce9f8;
  border-top-color: var(--auth-blue);
  border-radius: 50%;
  animation: beta-auth-spin 750ms linear infinite;
}

@keyframes beta-auth-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes beta-auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  body.beta-auth-page {
    display: block;
    padding-inline: max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-left));
  }

  .beta-auth-layout {
    max-width: 620px;
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .beta-auth-intro {
    min-height: auto;
    gap: 24px;
    padding: 26px 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(190, 211, 236, 0.62);
  }

  .beta-auth-brand img {
    width: 225px;
  }

  .beta-auth-intro-copy h1 {
    max-width: 15ch;
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .beta-auth-intro-copy p {
    margin-top: 13px;
  }

  .beta-auth-preview {
    display: none;
  }

  .beta-auth-card {
    max-height: none;
    padding: 28px;
    overflow: visible;
  }
}

@media (max-width: 540px) {
  body.beta-auth-page {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .beta-auth-layout {
    border-radius: 24px;
  }

  .beta-auth-intro {
    padding: 20px;
  }

  .beta-auth-brand img {
    width: 190px;
  }

  .beta-auth-brand > span {
    display: none;
  }

  .beta-auth-intro-copy h1 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
    line-height: 0.98;
  }

  .beta-auth-intro-copy p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .beta-auth-card {
    gap: 18px;
    padding: 24px 18px;
  }

  .beta-auth-feedback {
    padding: 13px 14px;
    border-radius: 13px;
  }

  .beta-auth-card-heading h2 {
    font-size: 1.75rem;
  }

  .beta-auth-field-grid {
    grid-template-columns: 1fr;
  }

  .beta-auth-tabs {
    overflow-x: auto;
  }

  .beta-auth-photo {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .beta-auth-photo-action {
    display: none;
  }

  .beta-auth-footer {
    padding-inline: 8px;
    text-align: center;
  }

  .beta-auth-legal-layer {
    padding: 0;
  }

  .beta-auth-legal-dialog {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}

.beta-auth-completion-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 12% 12%, rgba(67, 174, 255, .18), transparent 34%),
    radial-gradient(circle at 88% 85%, rgba(95, 86, 225, .14), transparent 38%),
    #f4f8ff;
}

.beta-auth-completion {
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
}

.beta-auth-completion__brand {
  width: min(260px, 62vw);
  display: block;
  margin-inline: auto;
}

.beta-auth-completion__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.beta-auth-completion__card {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: clamp(26px, 6vw, 46px);
  border: 1px solid rgba(182, 203, 229, .8);
  border-radius: 30px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 70px rgba(30, 73, 127, .16);
  text-align: center;
}

.beta-auth-completion__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: linear-gradient(145deg, #e8f2ff, #eef0ff);
  color: #1769dc;
}

.beta-auth-completion__card.is-success .beta-auth-completion__icon {
  background: #e4f8ed;
  color: #157443;
}

.beta-auth-completion__card.is-warning .beta-auth-completion__icon {
  background: #fff1e5;
  color: #b55415;
}

.beta-auth-completion__icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.beta-auth-completion__eyebrow {
  color: #1769dc;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.beta-auth-completion__card h1,
.beta-auth-completion__card p {
  margin: 0;
}

.beta-auth-completion__card h1 {
  color: #10233d;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  letter-spacing: -.04em;
}

.beta-auth-completion__card > p,
.beta-auth-completion__success p {
  color: #5b7189;
  font-size: .94rem;
  line-height: 1.58;
}

.beta-auth-completion__action {
  min-width: min(100%, 270px);
  margin-top: 4px;
  text-decoration: none;
}

.beta-auth-completion__form {
  width: 100%;
  display: grid;
  gap: 13px;
  margin-top: 5px;
  text-align: left;
}

.beta-auth-completion__success {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.beta-auth-completion__success[hidden] {
  display: none;
}

.beta-auth-completion__success strong {
  color: #157443;
  font-size: 1.12rem;
}

@media (max-width: 520px) {
  .beta-auth-completion-page {
    align-items: start;
    padding: 20px 12px;
  }

  .beta-auth-completion__card {
    padding: 25px 18px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.beta-fa-icon {
  width: 1em;
  height: 1em;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: currentColor;
  font-size: 1em;
  line-height: 1;
  text-align: center;
}

.beta-auth :where(button, input) {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.beta-auth-input > .beta-fa-icon,
.beta-auth-reveal .beta-fa-icon {
  width: 20px;
  font-size: 1rem;
}

.beta-auth-preview-orb .beta-fa-icon,
.beta-auth-photo-preview .beta-fa-icon {
  font-size: 1.35rem;
}

.beta-auth-primary .beta-fa-icon {
  font-size: 0.92rem;
}
