/* This page shares the resident landing's visual system in club.css. */
.header-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-tools .login {
  padding-inline: 18px;
  border: 1px solid #9bbdd133;
  border-radius: 8px;
  background: #0b1720a8;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.header-tools .theme-toggle {
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.header-tools .theme-option svg {
  transition: filter 180ms ease;
}

.title-pre {
  display: block;
  margin-bottom: 8px;
  color: #b9cbd7;
  font-size: clamp(25px, 2.3vw, 35px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.title-name {
  font-size: clamp(45px, 4.1vw, 67px);
}

.title-version {
  margin-top: 8px;
}

.lead {
  max-width: 590px;
}

.release-copy {
  margin-top: 13px;
  color: #d6e5ed;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.55;
}

.release-accent {
  color: #82d3e9;
  font-weight: 600;
  background: linear-gradient(105deg, #63cfe9 0%, #8eb7ed 30%, #a58cf0 55%, #62cee8 78%, #63cfe9 100%) 0 50%/220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-accent-shift 5.8s ease-in-out infinite;
}

.existing-account {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
}

.existing-account button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: #61cbe77a;
  text-underline-offset: 3px;
  transition: color 180ms ease, text-shadow 180ms ease, text-decoration-color 180ms ease;
}

.actions {
  margin-top: 28px;
}

.primary {
  justify-content: space-between;
  text-align: left;
  min-width: 365px;
}

.primary:active {
  transform: scale(.96);
}

@media (hover: hover) {
  .existing-account button:hover,
  .login-options .inline-button:hover {
    color: #b7f0ff;
    text-decoration-color: currentColor;
    text-shadow: 0 0 12px #66d7f08c;
  }

  .header-tools .theme-toggle:hover,
  .header-tools .login:hover {
    border-color: #8be4f0a6;
    box-shadow: 0 0 0 1px #8be4f024, 0 0 20px #54cbe43d, inset 0 1px 0 #fff16;
  }

  .header-tools .login:hover {
    color: #e7faff;
    background: #143041c9;
  }

  .header-tools .theme-toggle:hover .theme-option svg {
    filter: drop-shadow(0 0 5px #5bd6f7a6);
  }
}

.existing-account button:focus-visible,
.login-options .inline-button:focus-visible {
  text-decoration-color: currentColor;
  text-shadow: 0 0 12px #66d7f08c;
}

.header-tools .theme-toggle:focus-visible,
.header-tools .login:focus-visible {
  border-color: #8be4f0a6;
  box-shadow: 0 0 0 1px #8be4f024, 0 0 20px #54cbe43d;
}

.primary.is-submitting::before {
  content: "";
  position: absolute;
  right: 18px;
  width: 16px;
  height: 16px;
  border: 2px solid #07151e44;
  border-top-color: #07151e;
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

.primary.is-submitting svg {
  opacity: 0;
}

.access-note {
  justify-content: flex-start;
  margin-top: 14px;
  color: #b9cddb;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .005em;
}

.access-note::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px #61cbe71c;
}

.panel-close {
  position: absolute;
  top: -8px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #88b7d533;
  border-radius: 50%;
  background: #0b172060;
  color: #b8cdda;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.panel-close:hover {
  color: var(--text);
  border-color: #8bcfe57a;
  background: #172b3a;
}

.panel-close svg {
  width: 17px;
  height: 17px;
}

.success-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin-bottom: 27px;
}

.success-controls .state-mark {
  margin-bottom: 0;
}

.success-controls .panel-close {
  position: static;
  flex: none;
  width: 46px;
  height: 46px;
}

.form-title {
  padding-right: 46px;
}

form .primary {
  margin-top: 18px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.login-options .remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.login-options .remember:hover,
.login-options .remember:focus-within {
  color: var(--cyan);
  text-shadow: 0 0 14px #61cbe78a;
}

.login-options .remember:hover input,
.login-options .remember:focus-within input {
  filter: drop-shadow(0 0 5px #61cbe7a8);
}

.remember input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--cyan);
  box-shadow: none;
}

.login-options .inline-button {
  min-height: 44px;
  white-space: nowrap;
  font-size: var(--small-size);
  transition: color 180ms ease, text-shadow 180ms ease, text-decoration-color 180ms ease;
}

.panel[data-panel="waitlist"] .field-hint {
  margin: 20px 0 7px;
}

.panel[data-panel="waitlist"] .existing-account {
  margin-top: 17px;
}

.panel[data-panel="waitlist-success"] .brand-accent {
  font-weight: inherit;
}

.password-shell {
  margin-top: 14px;
}

.password-shell input {
  padding-right: 60px;
}

.password-toggle {
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #97b7ca;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle[aria-pressed="true"] svg {
  opacity: .65;
}

.field-error + .primary {
  margin-top: 18px;
}

.footer {
  justify-content: flex-end;
}

html[data-theme="light"] .title-pre,
html[data-theme="light"] .existing-account {
  color: #526b79;
}

html[data-theme="light"] .header-tools .login,
html[data-theme="light"] .panel-close {
  color: #243b48;
  background: #fff8;
  border-color: #7993a25e;
}

html[data-theme="light"] .password-toggle {
  color: #496574;
}

html[data-theme="light"] .existing-account button {
  color: #14738d;
}

html[data-theme="light"] .release-copy {
  color: #344e5d;
}

html[data-theme="light"] .release-accent {
  color: #14738d;
  background-image: linear-gradient(105deg, #126f89 0%, #447db1 30%, #735fb5 55%, #187b9a 78%, #126f89 100%);
}

@media (hover: hover) {
  html[data-theme="light"] .existing-account button:hover,
  html[data-theme="light"] .login-options .inline-button:hover {
    color: #076783;
    text-shadow: 0 0 10px #2da9cf75;
  }

  html[data-theme="light"] .header-tools .theme-toggle:hover,
  html[data-theme="light"] .header-tools .login:hover {
    border-color: #298eaa9c;
    box-shadow: 0 0 0 1px #4ac7e344, 0 0 20px #419fba40, inset 0 1px 0 #fff;
  }

  html[data-theme="light"] .header-tools .login:hover {
    color: #0b536b;
    background: #eaf9ff;
  }
}

html[data-theme="light"] .access-note {
  color: #3d6071;
}

html[data-theme="light"] .scene-shade {
  background: linear-gradient(90deg, #eef5f7 0%, #eef5f7f5 35%, #eef5f7dc 49%, #eef5f700 73%);
}

html[data-theme="light"] .motion-toggle {
  background: #ffffffb8;
  color: #496574;
  border-color: #7993a25e;
}

@media (max-width: 900px) {
  .header-tools { gap: 9px; }
  .header-tools .login { padding-inline: 13px; }
  html[data-theme="light"] .scene-shade {
    background: linear-gradient(180deg, #eef5f7 0%, #eef5f7f8 26%, #eef5f7eb 39%, #eef5f79c 49%, #eef5f700 62%);
  }
  html[data-theme="light"] .existing-account {
    width: fit-content;
    max-width: 100%;
    margin-left: -6px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #eef5f7f2;
    box-shadow: 0 0 18px 12px #eef5f7e8;
    color: #344f5d;
  }
  .title-pre { font-size: clamp(21px, 5.7vw, 28px); }
  .title-name { font-size: clamp(34px, 8.7vw, 50px); }
  .title-version { font-size: clamp(65px, 17vw, 85px); }
  .existing-account { margin-top: 19px; font-size: .8125rem; }
  .release-copy { font-size: .9375rem; }
  .access-note { font-size: .75rem; }
  .actions { margin-top: 23px; }
  .primary { min-width: 0; }
  .panel-close { top: -4px; }
  .success-controls { margin-bottom: 22px; }
  .form-title { padding-right: 48px; }
  .login-options { flex-wrap: wrap; gap: 0 18px; }
  .login-options .inline-button { margin-left: auto; }
}

@media (max-width: 599px) and (max-height: 740px) {
  .title-pre { font-size: 20px; }
  .title-name { font-size: 33px; }
  .title-version { font-size: 60px; }
  .existing-account { margin-top: 14px; }
  .release-copy { font-size: .8125rem; }
  .access-note { font-size: .6875rem; }
  .actions { margin-top: 18px; }
}

@media (max-width: 599px) {
  .header { gap: 8px; }
  .brand { min-width: 0; }
  .brand img { width: clamp(130px, 43vw, 175px); }
  .header-tools { flex: none; gap: 6px; }
  .header-tools .theme-toggle { width: 70px; height: 38px; }
  .header-tools .theme-option { height: 30px; }
  .header-tools .theme-thumb { width: 32px; height: 32px; transform: translateX(32px); }
  .header-tools .login { padding-inline: 10px; }
}
