.account-page {
  --account-width: min(1120px, calc(100vw - 240px), calc(max(240px, 100svh - 340px) * 16 / 9));
  display: flow-root;
  min-height: 100svh;
  color: #f3f4f6;
  color-scheme: dark;
  font-family: var(--lc-font-body, 'Avenir', sans-serif);
}
.account-content {
  position: relative;
  width: min(460px, var(--account-width));
  margin: clamp(48px, 8svh, 80px) auto 40px;
}
.account-header {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin-bottom: 4px;
}
.account-header h1 {
  margin: 0;
  line-height: 0;
}
.account-logo {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
}
.account-brand {
  position: absolute;
  top: 8px;
  left: -78px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
}
.account-wordmark {
  position: relative;
  display: block;
  width: 20px;
  height: 148px;
  flex-shrink: 0;
}
.account-wordmark img {
  position: absolute;
  left: 20px;
  top: 0;
  width: 148px;
  height: auto;
  max-width: none;
  transform: rotate(90deg);
  transform-origin: top left;
}
.account-chinese {
  display: block;
  width: 36px;
  height: auto;
}
.account-panel {
  width: 100%;
  padding: 36px;
  border: 1px solid #ffffff1c;
  border-radius: 16px;
  background: #071322e8;
  box-shadow: 0 24px 80px #0003;
  text-align: left;
}
.account-panel h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.account-status {
  margin: 0;
  color: #becbd9;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.account-providers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.account-providers button {
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}
.account-panel .account-lc-input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  background: #ffffff06;
  color: #fff;
  font-family: inherit;
  font-weight: 400;
}
.account-panel .account-lc-primary {
  min-height: 48px;
  padding: 12px 20px;
  border-color: transparent;
  border-radius: 8px;
}
.account-panel input[autocomplete='one-time-code'] {
  font-size: 24px !important;
  letter-spacing: 0.3em;
  text-align: center;
}
.account-panel a:focus-visible,
.account-panel button:focus-visible,
.account-brand:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .account-page {
    --account-width: calc(100vw - 112px);
  }
  .account-brand {
    left: -56px;
    top: 4px;
    gap: 4px;
  }
  .account-wordmark {
    width: 14px;
    height: 104px;
  }
  .account-wordmark img {
    left: 14px;
    width: 104px;
  }
  .account-chinese {
    width: 26px;
  }
  .account-logo {
    width: 260px;
  }
}
@media (max-width: 520px) {
  .account-page {
    --account-width: calc(100vw - 32px);
  }
  .account-header {
    padding-left: 56px;
    min-height: 88px;
    margin-bottom: 12px;
  }
  .account-logo {
    width: 240px;
  }
  .account-brand {
    left: 2px;
    top: 0;
  }
  .account-panel {
    padding: 26px 24px;
  }
  .account-panel h2 {
    font-size: 24px;
  }
}

@font-face {
  font-family: 'Signup Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/auth/google-sans-medium.ttf') format('truetype');
}

.signup-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 4px;
  font-family: 'Signup Google Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition:
    background-color 150ms,
    box-shadow 150ms;
}

.signup-provider > img,
.signup-provider > svg {
  flex-shrink: 0;
}

.signup-provider:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 3px;
}

.signup-provider:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.signup-google {
  border-color: #747775;
  background: #fff;
  color: #1f1f1f;
}

.signup-google:hover:not(:disabled) {
  box-shadow: 0 0 0 2px #ffffff26;
}

.signup-email {
  border-color: #fc0902;
  background: #fc0902; /* Existing text.date / primary button colour. */
  color: #fff;
}

.signup-email:hover:not(:disabled) {
  filter: brightness(1.1);
}

.signup-discord {
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
}

.signup-steam {
  border-color: #3b526b;
  background: #171d25;
  color: #fff;
}

.signup-discord:hover,
.signup-steam:hover {
  filter: brightness(1.12);
}

.signup-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #374151;
  border-radius: 6px;
  background: #1f293780;
  color: #d1d5db;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  transition:
    border-color 150ms,
    background-color 150ms;
}
.signup-consent:hover:not(:disabled) {
  border-color: #6b7280;
}
.signup-consentSelected {
  border-color: #ec4899;
  background: #1f2937;
  color: white;
}
.signup-consentMark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid #9ca3af;
  border-radius: 3px;
  color: white;
  font-size: 13px;
  line-height: 1;
}
.signup-consentSelected .signup-consentMark {
  border-color: #ec4899;
  background: #ec4899;
}
.signup-consent:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 3px;
}
.signup-consent:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.signup-facebook {
  border-color: #0866ff;
  background: #0866ff;
  color: white;
}
.signup-facebook:hover:not(:disabled) {
  filter: brightness(1.1);
}

/* Desktop keeps its existing layout. Only the heading makes room for the logos on mobile. */
@media (max-width: 1023px) {
  .beta-layout {
    padding-top: 16px;
    padding-bottom: 40px;
  }
  .beta-brand {
    left: 16px;
    top: 32px;
    gap: 4px;
  }
  .beta-brand > span {
    width: 14px;
    height: 104px;
  }
  .beta-brand > span img {
    left: 14px;
    width: 104px;
  }
  .beta-brand > img {
    width: 26px;
  }
  .beta-panel {
    margin-left: 0;
    padding: 16px 16px 28px;
  }
  .beta-panel > header {
    min-height: 104px;
    padding-left: 56px;
    padding-bottom: 0;
    display: flex;
    align-items: center;
  }
  .beta-panel h1 {
    font-size: 24px;
    line-height: 27px;
  }
  .beta-panel h2 {
    font-size: 16px;
    line-height: 22px;
  }
  .beta-panel h3 {
    font-size: 14px;
    line-height: 21px;
  }
  .beta-panel p {
    font-size: 13px;
    line-height: 20px;
  }
  .beta-grid {
    margin-top: 16px;
    gap: 18px;
  }
  .beta-copy {
    display: contents;
  }
  .beta-copy > p {
    order: 2;
  }
  .beta-copy > div {
    order: 0;
    margin-top: 0;
    padding-left: 12px;
  }
  .beta-copy > div p:first-child {
    font-size: 16px;
    line-height: 22px;
  }
  .beta-copy > div p + p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 18px;
  }
  .beta-grid > #registration {
    order: 1;
  }
  .beta-grid > section {
    order: 3;
  }
  .beta-panel #registration > :first-child {
    padding: 16px;
  }
  .beta-panel #registration p {
    font-size: 12px;
    line-height: 18px;
  }
  .beta-panel #registration button {
    font-size: 14px;
  }
  .beta-panel [data-beta-section='night'] > div {
    margin-top: 16px;
  }
  .beta-panel [data-beta-section='night'] > div > div {
    gap: 12px;
    margin-top: 16px;
  }
  .beta-panel [data-beta-section='night'] span[aria-hidden] {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .beta-panel [data-beta-section='night'] > p {
    margin-top: 20px;
  }
  .beta-panel > .beta-extras {
    margin-top: 24px;
    padding-top: 24px;
    gap: 18px;
  }
  .beta-panel [data-beta-section='support'] {
    padding: 16px;
  }
}
