/* ═══════════════════════════════════════════════════════════════════════
   Freedom — auth.css  v2.0
   Estilos específicos das telas de autenticação (OTP, Google, perfil)
   Sem !important. Depende de design-tokens.css e freedom.css.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── TELA OTP — PHONE INPUT ─────────────────────────────────────────── */

.phone-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface2);
  border: 1.5px solid var(--bd);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.phone-wrap:focus-within {
  border-color: var(--pr);
  box-shadow: 0 0 0 3px var(--pr-glow);
  background: var(--surface);
}

.phone-flag {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
  height: 52px;
  border-right: 1.5px solid var(--bd);
  font-size: 15px;
  font-weight: 600;
  color: var(--tx2);
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-input {
  flex: 1;
  height: 52px;
  border: none;
  background: transparent;
  padding: 0 var(--sp-4);
  font-size: 20px;
  font-weight: 700;
  color: var(--tx);
  outline: none;
  letter-spacing: 0.5px;
}

/* ─── OTP DIGITS ─────────────────────────────────────────────────────── */

.otp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.otp-heading {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.otp-heading strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--tx);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.otp-heading span {
  font-size: 14px;
  color: var(--tx3);
  line-height: 1.5;
}

.otp-digits {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.otp-digit {
  width: 52px;
  height: 60px;
  border-radius: var(--r-sm);
  border: 2px solid var(--bd);
  background: var(--surface2);
  font-size: 26px;
  font-weight: 900;
  color: var(--tx);
  text-align: center;
  outline: none;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
  caret-color: var(--pr);
}

.otp-digit:focus {
  border-color: var(--pr);
  box-shadow: 0 0 0 3px var(--pr-glow);
  background: var(--surface);
}

.otp-digit.filled {
  border-color: var(--pr);
  background: var(--pr-lt);
}

.otp-resend {
  font-size: 13px;
  color: var(--tx3);
  text-align: center;
}

.otp-resend button {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--pr);
  font-weight: 700;
  padding: 4px;
  border-radius: var(--r-xs);
}

.otp-resend button:disabled {
  color: var(--tx4);
}

/* Countdown */
.otp-countdown {
  font-weight: 700;
  color: var(--pr);
  font-variant-numeric: tabular-nums;
}

/* ─── PERFIL PRESTADOR ────────────────────────────────────────────────── */

.complete-profile-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--bd);
}

.complete-profile-step:last-child {
  border-bottom: none;
}

.profile-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pr);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.profile-step-num.done {
  background: var(--green);
}

/* Serviços oferecidos — checkboxes */
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.servico-check {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--bd);
  background: var(--surface2);
  cursor: pointer;
  transition: all var(--dur-fast);
  font-size: 13px;
  font-weight: 600;
  color: var(--tx2);
}

.servico-check.selected {
  border-color: var(--pr);
  background: var(--pr-lt);
  color: var(--pr);
}

.servico-check input {
  display: none;
}
