@font-face {
  font-family: 'Builder Extended';
  src: url('assets/fonts/builder-extended-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
.auth-actions { display: flex; gap: 8px; align-items: center; }
.signup-button, .login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 3px 12px;
  min-height: 28px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.signup-button { border: 1px solid #335fff; color: white; background: #335fff; }
.signup-button:hover { background: #5277ff; }
.login-button { border: 1px solid var(--input-border); background: none; color: var(--text); }
.login-button:hover { background: var(--hover); }
#logout { width: 100%; padding: 9px 16px; margin-bottom: 8px; }
.account-status { font-size: 11px; color: var(--muted); }
.auth-error { color: #ff8585; font-size: 13px; line-height: 18px; margin: 8px 0; }
[data-theme='light'] .auth-error { color: #b52020; }
.auth-error:empty { display: none; }
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { min-height: 0; width: 100%; max-width: none; margin: 0; padding: 0 16px; flex: 1; }
.auth-card { width: 400px; max-width: 100%; margin: 0 auto; border-radius: 0; }
.auth-card h1 { margin: 0; }
.auth-field { margin: 18px 0; }
.auth-field label, .auth-card legend { display: block; font-size: 12px; line-height: 18px; font-weight: 500; margin-bottom: 5px; }
.auth-field input, .birthday-selects select {
  box-sizing: border-box;
  width: 100%;
  height: 38px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text);
  background: var(--page);
  padding: 8px 12px;
  font-size: 16px;
}
.auth-field input::placeholder { color: var(--muted); opacity: 1; }
.password-input { position: relative; }
.password-input input { padding-right: 42px; }
.password-toggle { background: none; border: 0; padding: 5px; position: absolute; right: 0; top: 0; height: 38px; width: 38px; }
.icon-password-show, .icon-password-hide, .icon-male, .icon-female { background-image: url('assets/icons/generic-dark.svg'); background-size: 200%; }
.icon-password-show { background-position: 0 -2016px; }
.icon-password-hide { background-position: 0 -2044px; }
.icon-male { background-position: 0 -140px; }
.icon-female { background-position: 0 -168px; }
.gender-options [aria-pressed='true'] .icon-male { background-position: -28px -140px; }
.gender-options [aria-pressed='true'] .icon-female { background-position: -28px -168px; }
.auth-submit, .alternate-login {
  display: block;
  width: 100%;
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 8px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  background: none;
}
.auth-submit:disabled { opacity: .5; cursor: default; }
.auth-submit:hover:not(:disabled) { background: var(--hover); }
.text-link { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; text-decoration: underline; }
.auth-footer { margin: 0; border: 0; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; padding: 24px; font-size: 12px; line-height: 18px; }
.auth-footer button { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
.signup-page { position: relative; isolation: isolate; --page: #090a0b; --text: #fff; --muted: #bcbec8; --input-border: #656668; color: #fff; background: #121215; }
.signup-page::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(#0006, #0006), url('assets/signup-background.jpg') center / cover no-repeat; }
.signup-header { width: 100%; min-height: 64px; display: flex; align-items: flex-start; justify-content: flex-end; padding: 16px 24px; }
.signup-header .login-button { min-width: 100px; height: 32px; border-radius: 4px; background: white; color: #202227; border-color: white; }
.signup-page .auth-main { padding-bottom: 20px; }
.signup-brand { display: block; margin: 0 auto 18px; width: 300px; max-width: 85%; }
.signup-wordmark { display: block; width: 100%; height: auto; }
.signup-page .auth-card { background: #232527; border-radius: 4px; padding: 20px 24px 24px; }
.signup-page .auth-card h1 { text-align: center; font-size: 18px; line-height: 24px; margin: 0 0 24px; }
.signup-page .auth-field { margin: 18px 0; }
.signup-page .auth-field input { border-radius: 5px; font-size: 14px; }
.birthday-field, .gender-field { margin: 0; padding: 0; border: 0; }
.birthday-selects { display: flex; }
.birthday-selects select { height: 38px; padding: 5px 8px; border-radius: 0; border-right: 0; font-size: 14px; min-width: 0; }
.birthday-selects select:first-child { border-radius: 5px 0 0 5px; width: 40%; }
.birthday-selects select:nth-child(2), .birthday-selects select:last-child { width: 30%; }
.birthday-selects select:last-child { border-radius: 0 5px 5px 0; border-right: 1px solid var(--input-border); }
.gender-options { display: flex; }
.gender-options button { height: 40px; flex: 1; background: var(--page); border: 1px solid var(--input-border); display: grid; place-items: center; }
.gender-options button:first-child { border-radius: 5px 0 0 5px; }
.gender-options button:last-child { border-left: 0; border-radius: 0 5px 5px 0; }
.gender-options button[aria-pressed='true'] { box-shadow: inset 0 0 0 1px white; }
.signup-notice { margin: 18px 0; font-size: 12px; line-height: 17px; color: #bcbec8; }
.signup-notice .text-link { color: #80b7d3; }
.signup-page .auth-submit { background: white; color: #393b3d; border-color: white; border-radius: 5px; font-weight: 500; height: 38px; padding: 6px; }
.signup-page .auth-submit:hover:not(:disabled) { background: #e3e3e3; }
.signup-page .auth-footer { display: none; }
.auth-header-signup { margin-left: auto; }
.login-page .auth-main { padding-top: 123px; padding-bottom: 80px; }
.login-page .auth-card { padding: 20px 15px 40px; background: var(--surface); }
.login-page .auth-card h1 { font-size: 32px; line-height: 40px; text-align: center; margin: 0 0 10px; }
.login-page .auth-field { margin: 0 0 18px; }
.login-page .auth-field input { background: var(--surface); }
.login-page .password-toggle { display: none; }
.login-page .auth-submit { margin-top: 0; height: 38px; padding: 6px; }
.login-page .auth-field:last-of-type { margin-bottom: 8px; }
.login-options { text-align: center; }
.forgot-password { display: block; margin: 18px auto; font-size: 16px; line-height: 22px; text-decoration: none; }
.forgot-password:hover { text-decoration: underline; }
.login-divider { height: 1px; background: var(--input-border); margin: 20px 0; }
.alternate-login { margin: 12px 0; font-weight: 700; background: #3b3e49; border: 0; height: 36px; padding: 6px; }
[data-theme='light'] .alternate-login { background: #e3e5e8; }
.alternate-login:disabled { color: var(--text); cursor: default; }
.signup-prompt { margin: 38px 0 0; font-size: 16px; line-height: 22px; }
.signup-prompt a { font-weight: 700; }
.login-page .auth-footer { width: min(1070px, calc(100% - 48px)); align-self: center; justify-content: flex-start; border-top: 1px solid var(--border); padding: 24px 0; }
@media (max-width: 540px) {
  .auth-actions { gap: 6px; }
  .signup-button, .login-button { padding: 3px 8px; font-size: 12px; }
  .search { min-width: 60px; }
  .signup-header { min-height: 56px; padding: 12px 16px; }
  .signup-brand { width: 270px; margin-bottom: 16px; }
  .signup-page .auth-card { padding: 20px; }
  .signup-page .auth-card h1 { font-size: 16px; }
  .signup-page::before { background-attachment: scroll; }
  .auth-footer { gap: 20px; }
  .login-page .auth-main { padding-top: 86px; padding-bottom: 48px; }
}

.login-page .top-links { width: 480px; }
@media (max-width: 900px) { .login-page .top-links { width: 340px; } }
@media (max-width: 700px) { #auth-search { display: none; } }
