/* ═══════════════════════════════════════════════════════
   Novo Usuário — Pré-cadastro de Profissional
   Design System AVYX · Dark Mode Completo
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*,*::before,*::after{box-sizing:border-box}

body.nu-body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  min-height: 100vh;
  background: #f1f5f9;
  color: #1e293b;
  transition: background .3s, color .3s;
}

/* ── Fundo decorativo ── */
.nu-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.nu-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.06) 0%, transparent 70%);
}

.nu-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.04) 0%, transparent 70%);
}

/* ── Container principal ── */
.nu-container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

/* ── Header ── */
.nu-header {
  text-align: center;
  margin-bottom: 28px;
}

.nu-logo {
  font-family: 'Neuropol', 'Neuropol X', sans-serif;
  font-size: 42px;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.nu-header-title {
  font-size: .95rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 2px;
}

.nu-header-sub {
  font-size: .78rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ── Botão dark mode ── */
.nu-theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.nu-theme-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

/* ── Card do formulário ── */
.nu-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  transition: background .3s, border-color .3s, box-shadow .3s;
}

/* ── Info box ── */
.nu-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 24px 0;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: .82rem;
  color: #1e40af;
  line-height: 1.5;
}

.nu-info-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 1px;
  color: #3b82f6;
}

/* ── Seções ── */
.nu-form-body {
  padding: 24px;
}

.nu-section {
  margin-bottom: 28px;
}

.nu-section:last-child {
  margin-bottom: 0;
}

.nu-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.nu-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 1rem;
  flex-shrink: 0;
}

.nu-section-title {
  font-size: .88rem;
  font-weight: 700;
  color: #1e293b;
}

.nu-section-line {
  height: 2px;
  background: linear-gradient(to right, #4f46e5, transparent);
  border-radius: 2px;
  margin-top: 8px;
}

/* ── Labels ── */
.nu-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.nu-label .text-danger {
  color: #ef4444;
}

/* ── Inputs ── */
.nu-input,
.nu-select {
  width: 100%;
  padding: 10px 14px;
  font-size: .88rem;
  font-family: 'Nunito', sans-serif;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all .15s;
  outline: none;
  -webkit-appearance: none;
}

.nu-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.nu-input:focus,
.nu-select:focus {
  background: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

.nu-input::placeholder {
  color: #94a3b8;
}

/* ── Validação ── */
.nu-input.is-invalid,
.nu-select.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

.nu-invalid-msg {
  display: none;
  font-size: .72rem;
  color: #ef4444;
  margin-top: 4px;
  font-weight: 600;
}

.nu-input.is-invalid ~ .nu-invalid-msg,
.nu-select.is-invalid ~ .nu-invalid-msg {
  display: block;
}

/* ── Grid de campos ── */
.nu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.nu-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.nu-field {
  display: flex;
  flex-direction: column;
}

/* ── Declaração ── */
.nu-declaracao {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 24px 24px 0;
}

.nu-declaracao input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #4f46e5;
  flex-shrink: 0;
}

.nu-declaracao label {
  font-size: .8rem;
  color: #475569;
  line-height: 1.5;
  cursor: pointer;
}

/* ── Footer do card ── */
.nu-card-footer {
  padding: 20px 24px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.nu-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  font-size: .92rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(79,70,229,.25);
}

.nu-btn-submit:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  box-shadow: 0 4px 16px rgba(79,70,229,.35);
  transform: translateY(-1px);
}

.nu-btn-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Footer legal ── */
.nu-legal {
  text-align: center;
  margin-top: 20px;
  padding: 0 24px;
  font-size: .7rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ── Powered by ── */
.nu-powered {
  text-align: center;
  margin-top: 16px;
  font-size: .68rem;
  color: #94a3b8;
}

.nu-powered strong {
  font-family: 'Neuropol', 'Neuropol X', sans-serif;
  font-size: .72rem;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ═══════════════════════════════════════════
   🌙 DARK MODE
   ═══════════════════════════════════════════ */
body.nu-dark {
  background: #0f172a;
  color: #e2e8f0;
}

body.nu-dark .nu-bg::before {
  background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 70%);
}

body.nu-dark .nu-bg::after {
  background: radial-gradient(circle, rgba(139,92,246,.06) 0%, transparent 70%);
}

body.nu-dark .nu-header-title {
  color: #e2e8f0;
}

body.nu-dark .nu-header-sub {
  color: #64748b;
}

body.nu-dark .nu-theme-toggle {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

body.nu-dark .nu-theme-toggle:hover {
  background: #334155;
  color: #e2e8f0;
}

body.nu-dark .nu-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}

body.nu-dark .nu-info {
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.15);
  color: #93c5fd;
}

body.nu-dark .nu-info-icon {
  color: #60a5fa;
}

body.nu-dark .nu-section-icon {
  background: rgba(99,102,241,.1);
  color: #818cf8;
}

body.nu-dark .nu-section-title {
  color: #f1f5f9;
}

body.nu-dark .nu-label {
  color: #cbd5e1;
}

body.nu-dark .nu-input,
body.nu-dark .nu-select {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.nu-dark .nu-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

body.nu-dark .nu-input:focus,
body.nu-dark .nu-select:focus {
  background: #1e293b;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

body.nu-dark .nu-input::placeholder {
  color: #475569;
}

body.nu-dark .nu-declaracao {
  background: #0f172a;
  border-color: #334155;
}

body.nu-dark .nu-declaracao label {
  color: #94a3b8;
}

body.nu-dark .nu-card-footer {
  background: #0f172a;
  border-top-color: #334155;
}

body.nu-dark .nu-legal {
  color: #475569;
}

body.nu-dark .nu-powered {
  color: #475569;
}

/* ── Dark mode: opção de select ── */
body.nu-dark .nu-select option {
  background: #1e293b;
  color: #e2e8f0;
}


/* ═══════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nu-container {
    padding: 16px 10px 32px;
  }

  .nu-logo {
    font-size: 34px;
  }

  .nu-grid {
    grid-template-columns: 1fr;
  }

  .nu-grid-2 {
    grid-template-columns: 1fr;
  }

  .nu-card {
    border-radius: 10px;
  }

  .nu-info {
    margin: 16px 16px 0;
  }

  .nu-form-body {
    padding: 16px;
  }

  .nu-declaracao {
    margin: 16px 16px 0;
  }

  .nu-card-footer {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .nu-header {
    margin-bottom: 20px;
  }

  .nu-logo {
    font-size: 28px;
  }
}