.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: none;
}

.signup-modal.is-open {
  display: block;
}

.signup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.signup-modal__dialog {
  position: relative;
  width: min(100% - 24px, 520px);
  margin: 4vh auto 0;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e5eaf3;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  max-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
}

.signup-modal__content {
  padding: 30px 28px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.signup-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f4f7fb;
  color: #344054;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.signup-modal__close:hover {
  background: #e9eef7;
  transform: scale(1.03);
}

.signup-modal__brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding-right: 36px;
}

.signup-modal__badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2d6cff, #1a44b3);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 12px 24px rgba(31, 79, 215, 0.24);
}

.signup-modal__brand h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  color: #101828;
}

.signup-modal__brand p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 0.94rem;
  line-height: 1.45;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signup-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #344054;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="tel"],
.signup-form input[type="password"] {
  width: 100%;
  height: 46px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #ffffff;
  padding: 0 14px;
  font-size: 0.95rem;
  color: #101828;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.signup-form input::placeholder {
  color: #98a2b3;
}

.signup-form input:focus {
  border-color: #1f4fd7;
  box-shadow: 0 0 0 4px rgba(31, 79, 215, 0.12);
}

.signup-form input:hover {
  border-color: #98a2b3;
}

.signup-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 2px;
}

.signup-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #4474A3;
  cursor: pointer;
}

/* Links legais dentro do checkbox — visíveis e clicáveis */
/* !important necessário: base.css define a { color: inherit }       */
/* e .signup-form label tem color: #344054 que herda para o <a>      */
.signup-check a,
.signup-form .signup-check a {
  color: #E8500A !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.16s ease;
}

.signup-check a:hover,
.signup-form .signup-check a:hover {
  color: #C44008 !important;
}

.signup-feedback {
  min-height: 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.signup-feedback.is-error {
  padding: 12px 14px;
  background: #fff1f3;
  color: #b42318;
  border: 1px solid #fecdd3;
}

.signup-feedback.is-success {
  padding: 12px 14px;
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.signup-submit {
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2d6cff, #1f4fd7);
  color: #fff;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(31, 79, 215, 0.22);
  transition: transform 0.18s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.signup-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(31, 79, 215, 0.26);
}

.signup-submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

@media (max-width: 640px) {
  .signup-modal__dialog {
    width: calc(100% - 16px);
    margin-top: max(8px, env(safe-area-inset-top));
    border-radius: 20px;
    max-height: calc(100dvh - 16px);
  }

  .signup-modal__content {
    padding: 22px 18px max(20px, env(safe-area-inset-bottom));
  }

  .signup-modal__brand {
    gap: 12px;
    margin-bottom: 20px;
  }

  .signup-modal__badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .signup-modal__brand h2 {
    font-size: 1.25rem;
  }

  .signup-form input[type="text"],
  .signup-form input[type="email"],
  .signup-form input[type="tel"],
  .signup-form input[type="password"] {
    height: 44px;
  }

  .signup-submit {
    height: 50px;
  }
}

.signup-password-strength {
  margin-top: 8px;
}

.signup-password-strength__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.signup-password-strength__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.22s ease, background 0.22s ease;
}

.signup-password-strength__fill.is-very-weak {
  width: 25%;
  background: #ef4444;
}

.signup-password-strength__fill.is-weak {
  width: 45%;
  background: #f97316;
}

.signup-password-strength__fill.is-good {
  width: 70%;
  background: #eab308;
}

.signup-password-strength__fill.is-strong {
  width: 100%;
  background: #22c55e;
}

.signup-password-strength__text {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #667085;
}

/* =========================
   CAMPO SENHA COM ÍCONE
========================= */

.signup-password-field {
  position: relative;
}

.signup-password-field input {
  padding-right: 46px;
}

/* botão do olho */
.signup-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: background 0.2s ease, color 0.2s ease;
}

/* hover bonito */
.signup-password-toggle:hover {
  background: #f2f4f7;
  color: #344054;
}

/* remove efeito estranho de botão */
.signup-password-toggle:active {
  transform: translateY(-50%) scale(0.96);
}

/* evita borda azul feia ao clicar */
.signup-password-toggle:focus {
  outline: none;
  box-shadow: none;
}

