/* NuvemClin — autenticação: cadastro, verificação, recuperação, login */

.mc-signup-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mc-font);
  background: var(--nc-neutral);
  -webkit-font-smoothing: antialiased;
}

.mc-signup-shell {
  display: flex;
  min-height: 100vh;
}

/* ——— Painel lateral (desktop) ——— */
.mc-signup-aside {
  display: none;
  width: 44%;
  max-width: 520px;
  flex-shrink: 0;
  background: var(--nc-gradient-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mc-signup-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0, 191, 165, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.mc-signup-aside::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(167, 243, 208, 0.12);
  pointer-events: none;
}

.mc-signup-aside-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 3rem 2.75rem;
}

.mc-signup-aside-title {
  font-family: var(--mc-font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.mc-signup-aside-lead {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 32ch;
}

.mc-signup-aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.mc-signup-aside-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  opacity: 0.95;
}

.mc-signup-aside-list .bi {
  color: var(--nc-green-soft);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.mc-signup-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.9;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* ——— Área principal ——— */
.mc-signup-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  background: var(--nc-neutral);
}

.mc-signup-main-inner {
  width: 100%;
  max-width: 440px;
}

.mc-signup-main-inner .mc-alert {
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.mc-signup-mobile-brand {
  margin-bottom: 1.25rem !important;
}

/* ——— Card do formulário ——— */
.mc-signup-card {
  background: #fff;
  border: 1px solid rgba(13, 71, 161, 0.07);
  border-radius: 20px;
  box-shadow: var(--nc-shadow-soft);
  padding: 1.75rem 1.5rem;
}

@media (min-width: 576px) {
  .mc-signup-card {
    padding: 2rem 2rem 1.75rem;
  }
}

/* ——— Stepper ——— */
.mc-signup-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.mc-signup-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mc-font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mc-signup-step-num {
  width: 1.625rem;
  height: 1.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem;
  background: var(--nc-ice);
  color: var(--nc-gray);
  flex-shrink: 0;
}

.mc-signup-step.is-active {
  color: var(--nc-blue);
}

.mc-signup-step.is-active .mc-signup-step-num {
  background: var(--nc-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.35);
}

.mc-signup-step.is-done {
  color: var(--nc-teal);
}

.mc-signup-step.is-done .mc-signup-step-num {
  background: var(--nc-green-soft);
  color: var(--nc-blue-deep);
}

.mc-signup-step-line {
  flex: 1;
  height: 2px;
  background: var(--nc-border);
  border-radius: 1px;
  max-width: 2.75rem;
}

/* ——— Cabeçalho ——— */
.mc-signup-head {
  margin-bottom: 1.5rem;
}

.mc-signup-head h1 {
  font-family: var(--mc-font-display);
  font-size: clamp(1.25rem, 4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--nc-blue-deep);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.mc-signup-head p {
  font-size: 0.875rem;
  color: var(--nc-gray);
  margin: 0;
  line-height: 1.55;
}

.mc-signup-head--center {
  text-align: center;
}

@media (min-width: 992px) {
  .mc-signup-head--center {
    text-align: left;
  }
}

.mc-signup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mc-font-display);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nc-blue-deep);
  background: var(--nc-green-soft);
  border: 1px solid rgba(0, 191, 165, 0.35);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.mc-signup-email-pill {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--nc-ice);
  color: var(--nc-blue-deep);
  word-break: break-all;
  max-width: 100%;
}

/* ——— Campos ——— */
.mc-signup-field {
  margin-bottom: 1.1rem;
}

.mc-signup-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.mc-signup-input-wrap {
  position: relative;
}

.mc-signup-input-wrap .input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

.mc-signup-input-wrap .form-control {
  height: 2.875rem;
  padding: 0.5rem 0.875rem 0.5rem 2.55rem;
  font-size: 0.9375rem;
  border: 1.5px solid var(--nc-border);
  border-radius: 12px;
  background: #fff;
  color: var(--nc-slate);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mc-signup-input-wrap .form-control::placeholder {
  color: #94a3b8;
}

.mc-signup-input-wrap .form-control:focus {
  border-color: var(--nc-blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
  outline: none;
}

.mc-signup-input-wrap.has-toggle .form-control {
  padding-right: 2.75rem;
}

.mc-signup-toggle-pw {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s, background 0.15s;
}

.mc-signup-toggle-pw:hover {
  color: var(--nc-blue);
  background: var(--nc-ice);
}

.form-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ——— Checkbox termos / lembrar ——— */
.mc-signup-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
  padding: 0.8rem 0.9rem;
  padding-left: 0.9rem; /* cancela o padding-left do .form-check do Bootstrap */
  background: var(--nc-neutral);
  border: 1px solid var(--nc-border);
  border-radius: 12px;
}

.mc-signup-check .form-check-input {
  float: none;
  flex: 0 0 auto;
  margin: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-color: #cbd5e1;
  cursor: pointer;
}

.mc-signup-check .form-check-input:checked {
  background-color: var(--nc-blue);
  border-color: var(--nc-blue);
}

.mc-signup-check .form-check-label {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
  margin: 0;
  cursor: pointer;
}

.mc-signup-check .form-check-label a {
  color: var(--nc-blue);
  font-weight: 600;
  text-decoration: none;
}

.mc-signup-check .form-check-label a:hover {
  text-decoration: underline;
}

/* ——— OTP (6 dígitos) ——— */
.mc-otp-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.35rem, 2vw, 0.55rem);
  margin: 1.25rem 0 0.75rem;
}

.mc-otp-digit {
  flex: 0 0 auto;
  width: clamp(2.5rem, 12vw, 3rem);
  height: clamp(3rem, 14vw, 3.5rem);
  padding: 0;
  text-align: center;
  font-family: var(--mc-font-display);
  font-size: clamp(1.2rem, 5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--nc-blue-deep);
  border: 2px solid var(--nc-border);
  border-radius: 12px;
  background: #fff;
  caret-color: var(--nc-blue);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  -moz-appearance: textfield;
}

.mc-otp-digit::-webkit-outer-spin-button,
.mc-otp-digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mc-otp-digit:focus {
  border-color: var(--nc-blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.mc-otp-digit:not(:placeholder-shown) {
  border-color: rgba(25, 118, 210, 0.45);
  background: var(--nc-ice);
}

.mc-otp-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 0;
}

/* ——— Botões ——— */
.mc-signup-submit {
  width: 100%;
  height: 3rem;
  font-family: var(--mc-font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 0;
  border-radius: 12px;
  background: var(--nc-gradient-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--nc-shadow-brand);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.mc-signup-submit:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(25, 118, 210, 0.35);
  filter: brightness(1.03);
}

.mc-signup-submit:active {
  transform: translateY(0);
}

.mc-signup-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.mc-signup-link-btn {
  display: inline;
  background: none;
  border: none;
  padding: 0.35rem 0.5rem;
  font-family: var(--mc-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nc-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.mc-signup-link-btn:hover {
  color: var(--nc-blue-deep);
}

.mc-signup-resend {
  text-align: center;
  margin-top: 0.75rem;
}

/* ——— Rodapé do card ——— */
.mc-signup-footer {
  text-align: center;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nc-border);
  font-size: 0.875rem;
  color: var(--nc-gray);
}

.mc-signup-footer a {
  color: var(--nc-blue);
  font-weight: 600;
  text-decoration: none;
}

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

.mc-signup-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mc-signup-divider::before,
.mc-signup-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--nc-border);
}

.mc-signup-secondary-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nc-gray);
  text-decoration: none;
  border: 1.5px solid var(--nc-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mc-signup-secondary-link:hover {
  color: var(--nc-blue-deep);
  border-color: rgba(25, 118, 210, 0.35);
  background: var(--nc-ice);
}

/* Botão "Continuar com Google" (login/cadastro OAuth) */
.mc-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--nc-ink, #1f2937);
}

/* E-mail vindo do Google: confirmado e não editável */
.mc-signup-input-wrap input[readonly] {
  background: var(--nc-ice, #f1f6fb);
  color: var(--nc-gray, #6b7280);
  cursor: not-allowed;
}

/* ——— Desktop ——— */
@media (min-width: 992px) {
  .mc-signup-aside {
    display: block;
  }

  .mc-signup-main {
    padding: 2.5rem 3rem;
  }
}
