#hold_sign_in_wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(1100px, calc(100vw - 64px));
  max-width: 1100px;
  min-height: min(720px, calc(100vh - 64px));
  animation: authModalFade 220ms ease-out;
  border: 1px solid var(--theme-border);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(12, 12, 12, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  margin: auto 0;
}

#auth_intro_panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 44px;
  border-right: 1px solid var(--theme-border);
  background: var(--theme-aura), linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(12, 12, 12, 0.98));
}

.auth_platform_logo_wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 18px;
}

.auth_platform_logo {
  display: block;
  max-width: 140px;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.auth_kicker {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-accent);
  margin-bottom: 18px;
}

#auth_intro_title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  color: var(--theme-text);
  margin-bottom: 20px;
}

#auth_intro_copy {
  max-width: 28ch;
  color: var(--theme-muted);
  line-height: 1.7;
  font-size: 17px;
}

#auth_form_shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 620px;
  padding: 44px 36px;
}

.auth_site_logo_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 22px;
  animation: authLogoFade 320ms ease-out;
}

.auth_site_logo {
  display: block;
  max-width: 250px;
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

#sign_in_wrapper {
  display: grid;
  gap: 14px;
  width: min(100%, 320px);
  margin: 0 auto;
}

[id^=sign_in_item_] {
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
}

#sign_in_up_title {
    color: var(--sign_in_up_title_color);
    text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  font-family: "DM Serif Display", serif;
  font-size: 34px;
  letter-spacing: 0.02em;
}

#input_email, #input_password, #input_password_confirm {
  width: 100%;
  height: 56px;
  border: 1px solid var(--sign_in_up_border_color) !important;
  background: rgba(12, 12, 12, 0.82);
  font-size: 17px;
    color: var(--sign_in_up_input_color);
  padding: 0 16px;
}

#toggle_password_visibility {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

#eyeball_icon {
  filter: var(--eyeball_filter);
  width: 22px;
  height: 22px;
  display: block;
}

#password_input_container {
  position: relative;
  width: 100%;
}

#password_input_container #input_password {
  width: 100%;
  padding-right: 56px;
}

#auth_confirm_wrapper {
  display: none;
  width: 100%;
  justify-content: center;
}

#input_email::placeholder,
#input_password::placeholder,
#input_password_confirm::placeholder {
  color: var(--placeholder_color);
}

#forgot_password {
  margin: 12px 0 0;
  color: var(--forgot_password_color);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

#cancel_button {
  background: transparent;
  color: var(--theme-text) !important;
}

#hold_buttons_wrapper {
    display: flex;
  flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
  width: min(100%, 620px);
  margin-left: auto;
  margin-right: auto;
}

#hold_buttons_wrapper > div {
  flex: 0 0 auto;
}

#auth_mode_helper_text {
  margin-top: 18px;
  max-width: 320px;
  text-align: center;
  color: var(--placeholder_color);
  font-size: 14px;
  line-height: 1.65;
  margin-left: auto;
  margin-right: auto;
}

#sign_in_button, #sign_up_button, #sign_up_cancel_button, #sign_in_cancel_button {
    height: auto; 
    border: 1px solid var(--theme-border);
    font-size: 13px;
    padding: 15px 16px;
    cursor: pointer;
    color: var(--theme-text);
    font-family: "DM Mono", monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

#sign_in_button {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
    color: #0c0c0c;
}

#sign_up_button {
  background: transparent;
  color: var(--theme-text);
}

#sign_up_cancel_button, #sign_in_cancel_button {
  background: rgba(255, 255, 255, 0.04);
}

#sign_in_button:hover,
#sign_up_button:hover,
#sign_up_cancel_button:hover,
#sign_in_cancel_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(212, 245, 122, 0.22), 0 10px 24px rgba(212, 245, 122, 0.16);
  border-color: var(--theme-accent);
}

@media (max-width: 860px) {
  #hold_sign_in_wrapper {
    grid-template-columns: 1fr;
    width: min(100vw - 32px, 560px);
    min-height: auto;
  }

  #auth_intro_panel {
    padding: 36px 28px 12px;
    border-right: none;
    border-bottom: 1px solid var(--theme-border);
  }

  .auth_platform_logo_wrap {
    justify-content: center;
  }

  #auth_intro_title {
    font-size: 42px;
  }

  #auth_intro_copy {
    max-width: none;
  }

  #auth_form_shell {
    padding: 28px;
  }

  #hold_buttons_wrapper {
    flex-wrap: wrap;
    width: min(100%, 320px);
  }
}

@media (max-height: 760px) {
  #hold_sign_in_wrapper {
    min-height: auto;
    margin: 0;
  }

  #auth_intro_panel,
  #auth_form_shell {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

.rubberband {
    animation: rubberband 1s ease 1;
}

.red_outline {
    outline: 2px solid red;
}

@keyframes authModalFade {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

@keyframes authLogoFade {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

@keyframes rubberband {
    0% {
      transform: scaleX(1);
    }
    20% {
      transform: scaleX(1.25) scaleY(0.75);
    }
    40% {
      transform: scaleX(0.75) scaleY(1.25);
    }
    60% {
      transform: scaleX(1.15) scaleY(0.85);
    }
    80% {
      transform: scaleX(0.95) scaleY(1.05);
    }
    100% {
      transform: scaleX(1) scaleY(1);
    }
  }
  