#deep-signup-modal[hidden] {
  display: none;
}

#deep-signup-modal {
  --deep-auth-yellow: #ffc120;
  --deep-auth-yellow-dark: #e6a000;
  --deep-auth-ink: #1a1a1a;
  --deep-auth-muted: #666;
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 20000;
}

#deep-signup-modal .deep-signup-modal__backdrop {
  background: rgba(17, 24, 39, 0.76);
  inset: 0;
  position: absolute;
}

#deep-signup-modal .deep-signup-modal__dialog {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.07);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(26, 26, 26, 0.2);
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  max-height: calc(100vh - 40px);
  max-width: 500px;
  overflow: auto;
  padding: 28px 36px 30px;
  position: relative;
  width: 100%;
  z-index: 1;
}

#deep-signup-modal .deep-signup-modal__close {
  align-items: center;
  background: #f0f0f0;
  border: 0;
  border-radius: 50%;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  font-size: 23px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  z-index: 2;
}

#deep-signup-modal .deep-auth-tabs {
  background: #f0f0f0;
  border-radius: 9999px;
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr;
  margin: 0 42px 18px 0;
  padding: 5px;
}

#deep-signup-modal .deep-auth-tab {
  background: transparent;
  border: 0;
  border-radius: 9999px;
  color: var(--deep-auth-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  padding: 7px 15px;
}

#deep-signup-modal .deep-auth-tab.is-active {
  background: var(--deep-auth-yellow);
  box-shadow: 0 5px 15px rgba(255, 193, 32, 0.28);
  color: var(--deep-auth-ink);
}

#deep-signup-modal .deep-auth-kicker {
  color: var(--deep-auth-yellow-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

#deep-signup-modal .deep-signup-modal__title {
  color: var(--deep-auth-ink);
  font-size: clamp(1.55rem, 4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0;
  text-align: left;
}

#deep-signup-modal .deep-signup-modal__subtitle {
  color: var(--deep-auth-muted);
  font-size: 0.91rem;
  line-height: 1.55;
  margin: 7px 0 15px;
  text-align: left;
}

#deep-signup-modal .deep-signup-modal__dialog form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}

#deep-signup-modal .deep-signup-modal__dialog form[hidden] {
  display: none;
}

#deep-signup-modal [data-login-step][hidden],
#deep-signup-modal [data-signup-step][hidden],
#deep-signup-modal [data-login-controls][hidden] {
  display: none !important;
}

#deep-signup-modal .deep-auth-methods {
  background: #f3f3f3;
  border-radius: 9999px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 14px;
  padding: 4px;
}

#deep-signup-modal .deep-auth-methods button {
  background: transparent;
  border: 0;
  border-radius: 9999px;
  color: var(--deep-auth-muted);
  cursor: pointer;
  font: 700 0.78rem "Inter", sans-serif;
  min-height: 36px;
  padding: 7px 10px;
}

#deep-signup-modal .deep-auth-methods button.is-active {
  background: #fff;
  box-shadow: 0 3px 12px rgba(26, 26, 26, 0.1);
  color: var(--deep-auth-ink);
}

#deep-signup-modal .deep-auth-help,
#deep-signup-modal .deep-auth-code-target {
  color: var(--deep-auth-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 5px 0;
}

#deep-signup-modal .deep-auth-code-target {
  margin: -3px 0 4px 47px;
}

#deep-signup-modal .deep-auth-inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  justify-content: center;
  margin-top: 8px;
}

#deep-signup-modal .deep-auth-inline-actions button {
  background: transparent;
  border: 0;
  color: var(--deep-auth-ink);
  cursor: pointer;
  font: 700 0.79rem "Inter", sans-serif;
  padding: 3px;
  text-decoration: underline;
  text-decoration-color: var(--deep-auth-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

#deep-signup-modal .deep-auth-inline-actions button:disabled {
  color: #999;
  cursor: wait;
  text-decoration: none;
}

#deep-signup-modal .deep-auth-account-list {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

#deep-signup-modal .deep-auth-account {
  align-items: flex-start;
  background: #fafafa;
  border: 2px solid #ececec;
  border-radius: 14px;
  color: var(--deep-auth-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

#deep-signup-modal .deep-auth-account:hover,
#deep-signup-modal .deep-auth-account:focus-visible {
  border-color: var(--deep-auth-yellow);
  outline: none;
}

#deep-signup-modal .deep-auth-account strong {
  font-size: 0.92rem;
}

#deep-signup-modal .deep-auth-account span {
  color: var(--deep-auth-muted);
  font-size: 0.79rem;
}

#deep-signup-modal .deep-auth-otp-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
}

#deep-signup-modal .deep-signup-modal__field {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 3px solid var(--deep-auth-yellow);
  display: flex;
  margin: 0;
  min-height: 45px;
  position: relative;
}

#deep-signup-modal .deep-signup-modal__field > i:first-child {
  color: #2d2d2d;
  flex: 0 0 40px;
  text-align: center;
  width: 40px;
}

#deep-signup-modal .deep-signup-modal__field input {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
  color: var(--deep-auth-ink);
  font: 500 0.96rem "Inter", sans-serif;
  height: 42px;
  min-width: 0;
  outline: none !important;
  padding: 7px 42px 5px 7px;
  width: 100%;
}

#deep-signup-modal .deep-signup-modal__field input:focus,
#deep-signup-modal .deep-signup-modal__field input:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

#deep-signup-modal .deep-signup-modal__field input::placeholder {
  color: #8a8a8a;
  opacity: 1;
}

#deep-signup-modal .deep-auth-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--deep-auth-muted);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 0;
  width: 42px;
}

#deep-signup-modal .deep-signup-modal__forgot {
  font-size: 0.84rem;
  margin: 2px 0 0;
  text-align: right;
}

#deep-signup-modal .deep-signup-modal__forgot a {
  color: var(--deep-auth-ink);
  font-weight: 700;
  text-decoration-color: var(--deep-auth-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

#deep-signup-modal .deep-signup-modal__error {
  background: #fef3f2;
  border: 0;
  border-left: 4px solid #b42318;
  border-radius: 8px;
  color: #7a271a;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 3px 0;
  padding: 10px 12px;
}

#deep-signup-modal .deep-signup-modal__submit {
  align-items: center;
  background: var(--deep-auth-yellow);
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 8px 22px rgba(255, 193, 32, 0.3);
  color: var(--deep-auth-ink);
  cursor: pointer;
  display: inline-flex;
  font: 800 0.95rem "Inter", sans-serif;
  justify-content: center;
  margin-top: 5px;
  min-height: 45px;
  padding: 9px 22px;
  width: 100%;
}

#deep-signup-modal .deep-signup-modal__submit:hover,
#deep-signup-modal .deep-signup-modal__submit:focus-visible {
  background: #ffd04e;
  box-shadow: 0 12px 30px rgba(255, 193, 32, 0.4);
  outline: none;
  transform: translateY(-2px);
}

#deep-signup-modal .deep-signup-modal__submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
#deep-signup-modal .deep-signup-modal__dialog {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  max-width: 960px;
  overflow: hidden;
  padding: 0;
}

#deep-signup-modal .deep-auth-brand-panel {
  background: var(--deep-auth-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 570px;
  overflow: hidden;
  padding: 36px;
  position: relative;
  isolation: isolate;
}

#deep-signup-modal .deep-auth-brand-panel::before,
#deep-signup-modal .deep-auth-brand-panel::after {
  border-radius: 50%;
  content: "";
  position: absolute;
  z-index: -1;
}

#deep-signup-modal .deep-auth-brand-panel::before {
  background: rgba(255, 193, 32, 0.16);
  height: 280px;
  right: -100px;
  top: -110px;
  width: 280px;
}

#deep-signup-modal .deep-auth-brand-panel::after {
  border: 50px solid rgba(255, 193, 32, 0.08);
  bottom: -135px;
  height: 330px;
  left: -120px;
  width: 330px;
}

#deep-signup-modal .deep-auth-brand-badge {
  align-items: center;
  background: var(--deep-auth-yellow);
  border-radius: 9999px;
  color: var(--deep-auth-ink);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  padding: 7px 11px;
  text-transform: uppercase;
  width: fit-content;
}

#deep-signup-modal .deep-auth-brand-panel h3 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin: 0 0 16px;
}

#deep-signup-modal .deep-auth-brand-panel h3 span {
  color: var(--deep-auth-yellow);
}

#deep-signup-modal .deep-auth-brand-intro {
  color: #d1d1d1;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

#deep-signup-modal .deep-auth-brand-points {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

#deep-signup-modal .deep-auth-brand-points li {
  align-items: center;
  color: #f4f4f4;
  display: flex;
  font-size: 0.91rem;
  font-weight: 600;
  gap: 12px;
}

#deep-signup-modal .deep-auth-brand-points i {
  align-items: center;
  background: var(--deep-auth-yellow);
  border-radius: 50%;
  color: var(--deep-auth-ink);
  display: inline-flex;
  flex: 0 0 27px;
  font-size: 0.72rem;
  height: 27px;
  justify-content: center;
  width: 27px;
}

#deep-signup-modal .deep-auth-brand-switch {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 24px;
  padding-top: 18px;
  position: relative;
  z-index: 1;
}

#deep-signup-modal .deep-auth-brand-switch p {
  color: #d5d5d5;
  font-size: 0.9rem;
  margin: 0 0 11px;
}

#deep-signup-modal .deep-auth-side-signup {
  display: none;
}

#deep-signup-modal.deep-auth-signup-mode .deep-auth-side-login {
  display: none;
}

#deep-signup-modal.deep-auth-signup-mode .deep-auth-side-signup {
  display: block;
}

#deep-signup-modal .deep-auth-side-button {
  align-items: center;
  background: transparent;
  border: 2px solid var(--deep-auth-yellow);
  border-radius: 9999px;
  color: var(--deep-auth-yellow);
  cursor: pointer;
  display: inline-flex;
  font: 700 0.9rem "Inter", sans-serif;
  gap: 9px;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
}

#deep-signup-modal .deep-auth-side-button:hover,
#deep-signup-modal .deep-auth-side-button:focus-visible {
  background: var(--deep-auth-yellow);
  color: var(--deep-auth-ink);
  outline: none;
}

#deep-signup-modal .deep-auth-form-panel {
  align-self: center;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 36px;
}

#deep-signup-modal .deep-signup-modal__login {
  color: var(--deep-auth-muted);
  font-size: 0.86rem;
  margin: 5px 0 0;
  text-align: center;
}

#deep-signup-modal .deep-signup-modal__switch {
  background: transparent;
  border: 0;
  color: var(--deep-auth-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--deep-auth-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

@media (max-width: 1024px) {
  #deep-signup-modal .deep-signup-modal__dialog {
    display: block;
    max-width: 500px;
  }

  #deep-signup-modal .deep-auth-brand-panel {
    display: none;
  }

  #deep-signup-modal .deep-auth-form-panel {
    max-height: calc(100vh - 20px);
    padding: 28px 30px;
  }
}

@media (max-width: 575px) {
  #deep-signup-modal {
    padding: 10px;
  }

  #deep-signup-modal .deep-signup-modal__dialog {
    border-radius: 22px;
    max-height: calc(100vh - 20px);
  }

  #deep-signup-modal .deep-auth-form-panel {
    padding: 20px;
  }

  #deep-signup-modal .deep-auth-tabs {
    margin-bottom: 13px;
  }

  #deep-signup-modal .deep-signup-modal__subtitle {
    font-size: 0.84rem;
    margin-bottom: 10px;
  }

  #deep-signup-modal .deep-signup-modal__dialog form {
    gap: 6px;
  }

  #deep-signup-modal .deep-signup-modal__field {
    min-height: 41px;
  }

  #deep-signup-modal .deep-signup-modal__field input {
    font-size: 0.9rem;
    height: 38px;
  }
}
#deep-signup-modal .deep-auth-logo {
  align-items: center;
  display: inline-flex;
  margin: 0 46px 16px 0;
  max-width: 175px;
}

#deep-signup-modal .deep-auth-logo img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 165px;
}

@media (max-width: 1024px) {
  #deep-signup-modal .deep-signup-modal__dialog {
    max-height: calc(100dvh - 40px);
  }
  #deep-signup-modal .deep-auth-form-panel {
    max-height: calc(100dvh - 40px);
    min-width: 0;
    overscroll-behavior: contain;
  }
  #deep-signup-modal .deep-auth-tab,
  #deep-signup-modal .deep-auth-methods button,
  #deep-signup-modal .deep-signup-modal__submit {
    min-height: 44px;
    white-space: normal;
  }
  #deep-signup-modal .deep-signup-modal__close,
  #deep-signup-modal .deep-auth-password-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  #deep-signup-modal .deep-signup-modal__field input {
    min-width: 0;
    height: 44px;
    font-size: 16px;
  }
  #deep-signup-modal .deep-auth-code-target,
  #deep-signup-modal .deep-auth-account {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575px) {
  #deep-signup-modal .deep-auth-logo {
    margin-bottom: 12px;
    max-width: 150px;
  }

  #deep-signup-modal .deep-auth-logo img {
    width: 145px;
  }
}
