/* ===== Sign Up page (SignUp.html) styles ===== */

.signup-page {
  padding: 40px 16px 40px;
}

.signup-box {
  max-width: 590px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-top: 0;
}

.signup-box__title {
  margin: 0;
  padding: 17px 16px;
  background: #00a8f3;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.signup-box__body {
  padding: 30px 40px 36px;
}

.signup-box__intro {
  margin: 0 0 20px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* ---------- Rows: label on the left, field on the right ---------- */
.signup-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 242px);
  justify-content: center;
  align-items: start;
  margin-bottom: 20px;
}

.signup-row label {
  padding-top: 1px;
  font-size: 14px;
  color: #222;
}

.signup-form input {
  display: block;
  width: 100%;
  height: 26px;
  box-sizing: border-box;
  padding: 0 8px;
  border: 1px solid #aaa;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form input:focus {
  border-color: #00a8f3;
  box-shadow: 0 0 0 1px #00a8f3;
}

.signup-form input[aria-invalid="true"] {
  border-color: #e53935;
  box-shadow: 0 0 0 1px #e53935;
}

.signup-row__hint {
  margin: 3px 0 0;
  font-size: 11px;
  color: #999;
}

.signup-row__error {
  margin: 3px 0 0;
  font-size: 12px;
  color: #e53935;
}

/* Hide the hint while an error is showing */
.signup-row__error ~ .signup-row__hint {
  display: none;
}

/* Password strength bar */
.strength {
  height: 4px;
  margin-top: 4px;
  background: #eee;
}

.strength span {
  display: block;
  width: 0;
  height: 100%;
  transition: width 0.25s, background 0.25s;
}

.strength[data-level="1"] span { width: 25%;  background: #e53935; }
.strength[data-level="2"] span { width: 50%;  background: #fb8c00; }
.strength[data-level="3"] span { width: 75%;  background: #fdd835; }
.strength[data-level="4"] span { width: 100%; background: #43a047; }

.strength__label {
  margin: 2px 0 0;
  font-size: 11px;
  color: #777;
}

/* Verification code */
.captcha {
  margin-top: 0;
}

.captcha__image {
  display: block;
  width: 100%;
  max-width: 242px;
  height: auto;
  aspect-ratio: 3 / 1;
  box-sizing: border-box;
  border: 1px solid #aaa;
  background: #eee;
}

.captcha__refresh {
  margin: 4px 0 0 5px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: #00a8f3;
  cursor: pointer;
}

.captcha__refresh:hover {
  text-decoration: underline;
}

/* ---------- Submit ---------- */
.signup-form__status {
  margin: 0 0 12px;
  font-size: 13px;
  color: #e53935;
  text-align: center;
}

.signup-form__status:empty {
  display: none;
}

.signup-form__submit {
  display: block;
  width: 374px;
  max-width: 100%;
  height: 50px;
  margin: 0 auto;
  border: 0;
  border-bottom: 3px solid #0078ad;
  border-radius: 3px;
  background: #00a8f3;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.signup-form__submit:hover,
.signup-form__submit:focus-visible {
  background: #0092d4;
}

.signup-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.signup-form__terms,
.signup-form__login {
  margin: 20px 0 0;
  font-size: 12px;
  color: #666;
  text-align: center;
}

.signup-form__login {
  margin-top: 8px;
}

.signup-form__terms a,
.signup-form__login a {
  color: #00a8f3;
  text-decoration: none;
}

.signup-form__terms a span {
  color: #111;
}

.signup-form__terms a:hover,
.signup-form__login a:hover {
  text-decoration: underline;
}

/* ---------- Success message ---------- */
.signup-success {
  padding: 16px 18px;
  border-left: 3px solid #43a047;
  background: #edf7ee;
  font-size: 14px;
  line-height: 1.5;
  color: #2e5e31;
}

.signup-success p {
  margin: 0 0 8px;
}

.signup-success p:last-child {
  margin-bottom: 0;
}

.signup-success__title {
  font-size: 16px;
  font-weight: 700;
}

.signup-success__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signup-success__links a {
  color: #00a8f3;
  text-decoration: none;
}

.signup-success__links a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .signup-box__title {
    font-size: 18px;
  }

  .signup-box__body {
    padding: 22px 20px 28px;
  }

  .signup-row {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-bottom: 16px;
  }

  .signup-row > span {
    display: none;
  }

  .signup-form input {
    height: 38px;
  }

  .signup-form__submit {
    width: 100%;
  }
}
