/* Ajustes específicos da tela de cadastro (pacientes.php) */
.actions-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Linha de senha antes dos botões */
.actions-credentials{
  margin-bottom: 12px;
}


/* Botão de termos (0 = não aceito / 1 = aceito) */
.btn-termos{
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border-radius: var(--radius-8);
  border: 1px solid rgba(239,68,68,.45);
  background: rgba(239,68,68,.08);
  color: #B91C1C;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.btn-termos:hover{
  filter: brightness(.99);
}

.btn-termos:focus-visible{
  outline: 2px solid rgba(59,130,246,.6);
  outline-offset: 2px;
}

.btn-termos[data-termos="1"]{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.08);
  color: #166534;
}
.btn--ghost{
  border: 1px solid rgba(229,231,235,.9);
  background: #fff;
}
.btn--ghost:hover{
  filter: brightness(.99);
}

.btn-c-pac {
    width: 100%;
}

/* Suporte a col-6 (mesma lógica das demais col-*) */
.col-6{
  grid-column: span 6;
}
.form-alert{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-8);
  border: 1px solid rgba(229,231,235,.9);
  background: rgba(245,247,248,.8);
  color: var(--cyan-8);
  font-size: 14px;
}
.form-alert--error{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.06);
}
.form-alert--ok{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.06);
}

@media (max-width: 520px){
  .actions-row{
    grid-template-columns: 1fr;
  }
  .col-6{
    grid-column: span 12;
  }
}

/* Input com botão de "olho" (mostrar/ocultar senha) */
.input-wrap{
  position: relative;
}

.input-wrap .input{
  padding-right: 44px; /* espaço para o botão do olho */
}

.btn-eye{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-eye:hover{
  background: rgba(0,0,0,.05);
}

.btn-eye:focus-visible{
  outline: 2px solid rgba(59,130,246,.6);
  outline-offset: 2px;
}

.btn-eye .icon-eye-off{
  display: none;
}

.btn-eye.is-visible .icon-eye{
  display: none;
}

.btn-eye.is-visible .icon-eye-off{
  display: inline;
}
