/* Estilos específicos para a página de registro - RESPONSIVO */

/* Reset e configurações base */
* {
  box-sizing: border-box;
}

/* Prevenir zoom automático no iOS */
input, select, textarea {
  font-size: 16px !important;
}


/* Garantir que o body tenha fundo claro */
body {
  background-color: #f8f9fa !important;
  color: #333 !important;
  font-family: 'Poppins', sans-serif !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Container principal responsivo */
.main .container {
  max-width: 60% !important;
  padding: 1rem !important;
  margin: 0 auto !important;
}

/* Responsividade melhorada para mobile */
@media (max-width: 768px) {
  .main .container {
    max-width: 90% !important;
    padding: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .main .container {
    max-width: 95% !important;
    padding: 0.5rem !important;
  }
}

/* Container de registro responsivo */
.register-container {
  max-width: 600px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Card principal responsivo */
.main .container > div {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.card {
  background: #ffffff !important;
  border: 1px solid #e1e5e9 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  border-radius: 20px !important;
  padding: 1.5rem !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Logo responsivo */
.logo-img {
  display: block !important;
  margin: 0 auto 1rem auto !important;
  max-width: 80px !important;
  height: auto !important;
}

/* Títulos responsivos */
.register-title {
  color: #333 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  margin-bottom: 1rem !important;
  line-height: 1.4 !important;
}

.register-subtitle {
  color: #666 !important;
  text-align: center !important;
  margin-bottom: 1.5rem !important;
  font-size: 0.95rem !important;
}

/* Formulário responsivo */
#registerForm {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Grupos de formulário responsivos */
.form-group {
  margin-bottom: 1.25rem !important;
  width: 100% !important;
  display: block !important;
  clear: both !important;
}

/* Labels responsivos */
.form-label,
.form-group label {
  color: #333 !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  position: relative !important;
}

/* Botão de preview responsivo */
.preview-btn {
  background: #667eea !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 12px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.preview-btn:hover {
  background: #5a6fd8 !important;
  transform: scale(1.1) !important;
}

.preview-btn i {
  font-size: 12px !important;
  color: white !important;
}

/* Responsividade para botões de preview */
@media (max-width: 480px) {
  .preview-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
    margin-left: 6px !important;
  }
}


/* Inputs responsivos */
.form-input,
.form-group input,
.form-group textarea,
.form-group select {
  background: #ffffff !important;
  color: #333 !important;
  border: 2px solid #e1e5e9 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: 0 !important;
  transition: border-color 0.3s ease !important;
}

.form-input:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Textarea específica */
.form-textarea {
  resize: vertical !important;
  min-height: 100px !important;
  max-height: 200px !important;
}

/* Placeholders responsivos */
.form-input::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666 !important;
  opacity: 1 !important;
  font-size: 0.95rem !important;
}

/* Textos pequenos responsivos */
.form-group small,
small {
  color: #666 !important;
  font-size: 0.85rem !important;
  display: block !important;
  margin-top: 0.25rem !important;
  line-height: 1.4 !important;
}

/* Campo do Instagram com @ fixo */
.instagram-input-container {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.instagram-at-symbol {
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #666 !important;
  font-size: 1rem !important;
  z-index: 1 !important;
  pointer-events: none !important;
  font-weight: 500 !important;
}

.instagram-input {
  padding-left: 2.5rem !important;
  width: 100% !important;
}

.instagram-at-fixed {
  background-color: #f8f9fa !important;
  border: 1px solid #e1e5e9 !important;
  border-right: none !important;
  color: #6c757d !important;
  font-weight: bold !important;
  font-size: 16px !important;
  padding: 12px 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 50px !important;
  border-radius: 4px 0 0 4px !important;
  user-select: none !important;
}

.instagram-input-container {
  display: flex !important;
  align-items: stretch !important;
}

.instagram-input-container .instagram-input {
  border-radius: 0 4px 4px 0 !important;
  border-left: none !important;
  padding-left: 12px !important;
}

/* Responsividade para campo do Instagram */
@media (max-width: 480px) {
  .instagram-at-symbol {
    left: 0.75rem !important;
    font-size: 0.9rem !important;
  }
  
  .instagram-input {
    padding-left: 2rem !important;
  }
}

/* Responsividade para ícone do header */
@media (max-width: 768px) {
  .user-icon i[data-lucide="user-round"] {
    width: 28px !important;
    height: 28px !important;
  }
}

@media (max-width: 480px) {
  .user-icon i[data-lucide="user-round"] {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Aviso do Instagram responsivo */
div[style*="background-color: #fff3cd"] {
  background-color: #fff3cd !important;
  border: 1px solid #ffeaa7 !important;
  padding: 0.75rem !important;
  margin-top: 0.5rem !important;
  border-radius: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

div[style*="background-color: #fff3cd"] p {
  color: #856404 !important;
  margin: 0 !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
}


/* Tags help */
.tags-help {
  color: #666 !important;
  font-size: 0.85rem !important;
  display: block !important;
  margin-top: 0.25rem !important;
  line-height: 1.4 !important;
}

/* Campo de arquivo responsivo */
.file-upload-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

.file-input {
  padding: 0.5rem !important;
  border: 2px dashed #e1e5e9 !important;
  background: #f8f9fa !important;
  cursor: pointer !important;
}

.file-help {
  color: #666 !important;
  font-size: 0.85rem !important;
  display: block !important;
  margin-top: 0.25rem !important;
  line-height: 1.4 !important;
}

/* Preview da imagem responsivo */
.image-preview {
  display: none !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0.5rem 0 !important;
}

.preview-image {
  max-width: 120px !important;
  max-height: 120px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #e1e5e9 !important;
  width: auto !important;
  height: auto !important;
}

/* Erros de imagem responsivos */
.image-error {
  color: #dc3545 !important;
  font-size: 0.85rem !important;
  display: none !important;
  margin-top: 0.25rem !important;
}

/* Botão responsivo */
.btn {
  background: linear-gradient(45deg, #f8039a, #fa7c22, #c411cc, #1e8af5) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  max-width: 100% !important;
  font-size: 1rem !important;
  margin-top: 1rem !important;
  display: block !important;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

.btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Links responsivos */
.login-link {
  text-align: center !important;
  margin-top: 1.5rem !important;
}

.login-link p {
  color: #666 !important;
  font-size: 0.95rem !important;
  margin: 0 !important;
}

.login-link-text {
  color: #667eea !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

.login-link-text:hover {
  text-decoration: underline !important;
}

/* Mensagens de erro responsivas */
.error-message {
  color: #dc3545 !important;
  font-size: 0.85rem !important;
  display: none !important;
  margin-top: 0.25rem !important;
  line-height: 1.4 !important;
  width: 100% !important;
}

/* Preview de palavras proibidas responsivo */
.word-preview {
  margin-top: 0.5rem !important;
  padding: 0.75rem !important;
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  max-height: 150px !important;
  overflow-y: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.word-preview strong {
  color: #333 !important;
  display: block !important;
  margin-bottom: 0.5rem !important;
}

/* Modal responsivo */
.modal {
  display: none !important;
  position: fixed !important;
  z-index: 1000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.5) !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

.modal-content {
  background: #fff !important;
  margin: 5% auto !important;
  padding: 1.5rem !important;
  border-radius: 15px !important;
  width: 100% !important;
  max-width: 500px !important;
  position: relative !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.close {
  position: absolute !important;
  right: 15px !important;
  top: 10px !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  color: #666 !important;
  z-index: 1 !important;
}

.close:hover {
  color: #333 !important;
}

/* Footer responsivo */
footer {
  background-color: #ffffff !important;
  padding: 1.5rem 0 !important;
  text-align: center !important;
  margin-top: 2rem !important;
  border-top: 1px solid #e1e5e9 !important;
}

.footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1rem !important;
  max-width: 100% !important;
}

.footer-links a {
  color: #666 !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  transition: color 0.3s ease !important;
}

.footer-links a:hover {
  color: #333 !important;
}

/* Media queries para responsividade */

/* Tablets */
@media (max-width: 768px) {
  .main .container {
    padding: 0.75rem !important;
  }
  
  .card {
    padding: 1.25rem !important;
    border-radius: 15px !important;
  }
  
  .register-title {
    font-size: 1.3rem !important;
  }
  
  .form-group {
    margin-bottom: 1rem !important;
  }
  
  .form-input,
  .form-group input,
  .form-group textarea {
    padding: 0.65rem 0.875rem !important;
    font-size: 16px !important; /* Evita zoom no iOS */
  }
  
  .btn {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
  }
  
  .modal-content {
    margin: 10% auto !important;
    padding: 1.25rem !important;
    max-width: 95% !important;
  }
  
  .footer-links {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
}

/* Smartphones */
@media (max-width: 480px) {
  .main .container {
    padding: 0.5rem !important;
  }
  
  .card {
    padding: 1rem !important;
    border-radius: 12px !important;
  }
  
  .logo-img {
    max-width: 60px !important;
  }
  
  .register-title {
    font-size: 1.2rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .register-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1.25rem !important;
  }
  
  .form-group {
    margin-bottom: 0.875rem !important;
  }
  
  .form-label,
  .form-group label {
    font-size: 0.9rem !important;
    margin-bottom: 0.375rem !important;
  }
  
  .form-input,
  .form-group input,
  .form-group textarea {
    padding: 0.6rem 0.75rem !important;
    font-size: 16px !important; /* Evita zoom no iOS */
    border-radius: 8px !important;
  }
  
  .form-group small,
  small {
    font-size: 0.8rem !important;
  }
  
  .btn {
    padding: 0.7rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
  }
  
  .modal-content {
    margin: 5% auto !important;
    padding: 1rem !important;
    max-width: 98% !important;
    border-radius: 12px !important;
  }
  
  .word-preview {
    padding: 0.5rem !important;
    font-size: 0.8rem !important;
    max-height: 120px !important;
  }
  
  .preview-image {
    max-width: 100px !important;
    max-height: 100px !important;
  }
  
  .instagram-warning {
    padding: 0.5rem !important;
  }
  
  .instagram-warning p {
    font-size: 0.8rem !important;
  }
}

/* Telas muito pequenas */
@media (max-width: 320px) {
  .main .container {
    padding: 0.25rem !important;
  }
  
  .card {
    padding: 0.75rem !important;
  }
  
  .register-title {
    font-size: 1.1rem !important;
  }
  
  .form-input,
  .form-group input,
  .form-group textarea {
    padding: 0.5rem 0.6rem !important;
    font-size: 16px !important; /* Evita zoom no iOS */
  }
  
  .btn {
    padding: 0.6rem 0.8rem !important;
    font-size: 0.85rem !important;
  }
}
