/* Shared signup gate overlay for the Academy + Health Sciences Academy apps.
   Matches the dark / gold branding used across the site. */

#signup-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(3px);
}

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

.gate-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background-color: #1c1d1e;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 32px 30px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gate-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8a8a8a;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}

.gate-close:hover {
  background-color: #2a2a2a;
  color: white;
}

.gate-card .logo-mark {
  display: inline-block;
  width: 34px;
  height: 34px;
  background-color: #ffc629;
  color: #151617;
  text-align: center;
  line-height: 34px;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 16px;
}

.gate-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.gate-card p.gate-pitch {
  color: #b9b9b9;
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.55;
}

.gate-field {
  margin-bottom: 14px;
}

.gate-field label {
  display: block;
  color: #8a8a8a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.gate-field input {
  width: 100%;
  padding: 12px 14px;
  background-color: #151617;
  border: 1px solid #333;
  border-radius: 6px;
  color: white;
  font-size: 14px;
}

.gate-field input:focus {
  outline: none;
  border-color: #ffc629;
}

.gate-submit {
  width: 100%;
  padding: 13px 14px;
  background-color: #ffc629;
  color: #151617;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 6px;
}

.gate-submit:hover {
  background-color: #ffd35c;
}

.gate-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.gate-error {
  color: #fca5a5;
  font-size: 13px;
  margin: 10px 0 0;
}

.gate-error[hidden] {
  display: none;
}

.gate-fineprint {
  color: #6f6f6f;
  font-size: 11.5px;
  margin: 16px 0 0;
  line-height: 1.5;
}

/* Static, always-visible inline signup block (e.g. the landing hero) --
   distinct from the modal above, but reuses its field/button styling. */
.inline-signup {
  background-color: #17181a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 20px 0;
  text-align: left;
}

.inline-signup[hidden] {
  display: none;
}

.inline-signup-heading {
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 4px;
}

.inline-signup-pitch {
  color: #b9b9b9;
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.5;
}

.zuyini-inline-signup {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.zuyini-inline-signup .gate-field {
  margin-bottom: 0;
  flex: 1 1 160px;
  min-width: 0;
}

.zuyini-inline-signup .gate-submit {
  flex: 0 0 auto;
  width: auto;
  margin-top: 20px;
  padding: 12px 22px;
  white-space: nowrap;
}

.zuyini-inline-signup .gate-error {
  flex-basis: 100%;
  margin-top: 4px;
}

.gate-success {
  color: #6ee7b7;
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.gate-success[hidden] {
  display: none;
}

@media (max-width: 620px) {
  .zuyini-inline-signup .gate-submit {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 4px;
  }
}
