/* ==========================================================================
   VERONA ROLEPLAY - RECRUTAMENTO STAFF ADMINISTRATIVA
   ESTÉTICA 100% FIEL À REFERÊNCIA VISUAL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #0b0d11;
  --input-bg: rgba(18, 21, 28, 0.88);
  --input-border: rgba(255, 255, 255, 0.08);
  --input-border-focus: #8da8dc;
  --input-glow-focus: 0 0 14px rgba(141, 168, 220, 0.22);
  
  --input-border-error: #b83a3a;
  --input-glow-error: 0 0 12px rgba(184, 58, 58, 0.25);
  --text-error: #c94646;
  
  --btn-blue: #8da8dc;
  --btn-blue-hover: #9bb4e4;
  --btn-text: #0e1219;
  
  --text-main: #d0d7e4;
  --text-title: #ffffff;
  --text-highlight: #8da8dc;
  --text-muted: #5e6678;
  --text-secondary: #747d8f;
  --text-placeholder: #454c5a;
  
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-inter);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Desativa setas nativas e scrollbars */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

textarea {
  resize: none !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

textarea::-webkit-scrollbar {
  display: none;
}

/* Banner de Fundo Dinâmico & Camadas de Efeito */
.bg-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, rgba(17, 21, 28, 0.75) 0%, rgba(9, 11, 15, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.65;
}

.bg-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 4;
}

/* Container Geral */
.app-container {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 35px 50px 25px 50px;
}

/* Topo Esquerdo: Logo Aumentado e Imponente */
.header-brand {
  user-select: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #ffffff;
  line-height: 1.05;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1px;
  line-height: 1;
}

/* Área Central */
.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 20px 0;
}

/* Card Central do Formulário */
.form-card {
  width: 100%;
  max-width: 440px;
  background: transparent;
  padding: 10px 0;
}

.form-header {
  text-align: center;
  margin-bottom: 20px;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: #e5ebf5;
}

.form-title .highlight {
  color: var(--text-highlight);
  font-weight: 600;
}

.step-indicator-text {
  font-size: 0.72rem;
  color: #636b7c;
  margin-top: 5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Container de Etapas */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepFade 0.25s ease-out;
}

@keyframes stepFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grupos de Inputs */
.input-group {
  margin-bottom: 14px;
  position: relative;
}

.group-helper-title {
  display: block;
  font-size: 0.75rem;
  color: #828ca0;
  margin-bottom: 6px;
  font-weight: 400;
  line-height: 1.35;
}

.group-helper-title strong {
  color: #d1d8e6;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  height: 44px;
  transition: var(--transition);
}

.input-box.textarea-box {
  height: auto;
  min-height: 75px;
  align-items: flex-start;
  padding-top: 11px;
}

.input-box:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.input-box:focus-within {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-glow-focus);
}

/* Estado de Erro */
.input-box.error {
  border-color: var(--input-border-error) !important;
  box-shadow: var(--input-glow-error) !important;
}

.input-box.error input,
.input-box.error textarea {
  color: var(--text-error);
}

.input-box.error svg {
  color: var(--text-error);
}

.input-box svg {
  width: 16px;
  height: 16px;
  color: #4a5263;
  position: absolute;
  left: 14px;
  pointer-events: none;
  transition: var(--transition);
}

.input-box:focus-within svg {
  color: var(--text-highlight);
}

.input-box input,
.input-box textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-inter);
  font-size: 0.83rem;
  padding: 0 14px 0 42px;
}

.input-box textarea {
  height: auto;
  min-height: 55px;
  line-height: 1.45;
  padding: 0 14px 10px 42px;
}

.input-box input::placeholder,
.input-box textarea::placeholder {
  color: var(--text-placeholder);
  font-size: 0.81rem;
}

/* Mensagem de Erro Vermelha Centralizada */
.error-message {
  display: none;
  font-size: 0.72rem;
  color: var(--text-error);
  margin-top: 5px;
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.1px;
}

.input-group.has-error .error-message {
  display: block;
}

/* Checkboxes Customizados (Turnos) */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.custom-checkbox-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  padding: 9px 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.76rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.custom-checkbox-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.custom-checkbox-card.checked {
  background: rgba(141, 168, 220, 0.08);
  border-color: var(--input-border-focus);
  color: #eaf0fa;
}

.custom-checkbox-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
  transition: var(--transition);
}

.custom-checkbox-card.checked .checkbox-mark {
  background: var(--btn-blue);
  border-color: var(--btn-blue);
}

.checkbox-mark svg {
  width: 10px;
  height: 10px;
  color: var(--btn-text);
  display: none;
}

.custom-checkbox-card.checked .checkbox-mark svg {
  display: block;
}

/* Radio Stack (Perguntas de Seleção Pronta) */
.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.custom-radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
  transition: var(--transition);
}

.custom-radio-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.custom-radio-card.checked {
  background: rgba(141, 168, 220, 0.08);
  border-color: var(--input-border-focus);
  color: #edf2fc;
}

.custom-radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  pointer-events: none;
  transition: var(--transition);
}

.custom-radio-card.checked .radio-mark {
  border-color: var(--btn-blue);
}

.radio-mark::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--btn-blue);
  display: none;
}

.custom-radio-card.checked .radio-mark::after {
  display: block;
}

/* Termos */
.terms-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.73rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.terms-card ul {
  padding-left: 16px;
  margin-top: 4px;
}

.terms-card li {
  margin-bottom: 2px;
}

/* Botões de Ação */
.action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn-primary {
  flex: 1;
  height: 44px;
  background: var(--btn-blue);
  color: var(--btn-text);
  font-family: var(--font-inter);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.1px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--btn-blue-hover);
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  height: 44px;
  padding: 0 16px;
  background: var(--input-bg);
  color: var(--text-secondary);
  font-family: var(--font-inter);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

/* Barra de Progresso Fiel */
.progress-container {
  margin-top: 8px;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: #252932;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 16.66%;
  background: var(--btn-blue);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(141, 168, 220, 0.35);
  transition: width 0.35s ease;
}

/* Links Abaixo */
.form-footer-links {
  margin-top: 14px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-footer-links a {
  color: var(--text-highlight);
  text-decoration: none;
  font-weight: 500;
  margin-left: 3px;
}

.form-footer-links a:hover {
  text-decoration: underline;
}

/* Tela de Sucesso */
.success-screen {
  text-align: center;
  display: none;
  padding: 20px 0;
  animation: stepFade 0.35s ease-out;
}

.success-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.success-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.success-link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-highlight);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.success-link-action:hover {
  text-decoration: underline;
}

.success-link-action svg {
  width: 14px;
  height: 14px;
}

/* Rodapé Disclaimer */
.footer-disclaimer {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.65rem;
  color: #3b414f;
  line-height: 1.45;
  user-select: none;
}

/* Notificações Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--btn-blue);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.25s ease;
}

.toast.toast-error {
  border-left-color: var(--input-border-error);
}

.toast.toast-success {
  border-left-color: #3fb950;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Spinner */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(14, 18, 25, 0.3);
  border-radius: 50%;
  border-top-color: var(--btn-text);
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Botão Discreto de Configuração */
.settings-trigger {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #3e4450;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.settings-trigger:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.settings-trigger svg {
  width: 13px;
  height: 13px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: #11141b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 22px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

/* Responsividade Mobile */
@media (max-width: 600px) {
  .app-container {
    padding: 20px 16px 16px 16px;
  }
  
  .form-card {
    max-width: 100%;
  }

  .brand-title {
    font-size: 1.25rem;
  }
}
