.community-signup:not([open]),
.community-signup [hidden] { display: none; }

.community-signup {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: clamp(20px, 5vw, 28px);
  border: 1px solid #6b5a8c;
  border-radius: 16px;
  background: #191425;
  color: #f8f4ff;
  box-shadow: 0 12px 36px #0006;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}

html:has(.community-signup[open]) { overflow: hidden; }

.community-signup::backdrop {
  background: rgb(10 7 18 / 55%);
  backdrop-filter: blur(7px);
}

.community-signup h2 {
  margin: 0 40px 14px 0;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  color: inherit;
}

.community-signup button {
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  cursor: pointer;
}

.community-signup [data-community-close] {
  position: absolute;
  right: 6px;
  top: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 23px;
  line-height: 1;
}

.community-signup form { display: flex; gap: 8px; margin: 0; }

.community-signup input[type="email"] {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #827596;
  border-radius: 8px;
  background: #100d18;
  color: white;
  font: inherit;
  font-size: 16px;
}

.community-signup input::placeholder { color: #c7bbcf; }

.community-signup button[type="submit"] {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #dfcffb;
  color: #211437;
  font-size: 15px;
  font-weight: 700;
}

.community-signup button:disabled { opacity: .7; cursor: wait; }
.community-signup :focus-visible { outline: 2px solid #ecd8ff; outline-offset: 3px; }
.community-signup [role="status"] { margin: 10px 0 0; font-size: 15px; }
.community-signup [role="status"]:empty { margin: 0; }
.community-signup .community-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#community-after-curriculum { display: block; height: 1px; pointer-events: none; }
