:root {
  --verde-fundo: #021a10; 
  --verde-claro: #0a3d28;
  --dourado: #d4af37;     
  --dourado-claro: #f5d67a;
  --texto-branco: #ffffff;
  --texto-secundario: #a3b8b0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: radial-gradient(circle at top, #3b4d2e, #1e2617);
  color: var(--texto-branco);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Linhas decorativas de fundo estilo conceito */
body::before {
  content: '';
  position: absolute;
  top: 25%;
  left: -20%;
  width: 140%;
  height: 200px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  transform: rotate(-5deg);
  z-index: 0;
  pointer-events: none;
}

.container-principal {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  padding: 30px 20px 20px;
  box-sizing: border-box;
}

/* Logo Central */
.logo-container {
  text-align: center;
  margin-bottom: 25px;
}
.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.6);
  object-fit: cover;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(to right, var(--texto-branco), var(--dourado-claro), var(--dourado));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}
.tagline {
  font-size: 12px;
  color: var(--texto-secundario);
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* Área do Microfone */
.mic-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mic-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
  height: 140px;
}

.onda-svg {
  width: 70px;
  height: 40px;
  stroke: var(--dourado);
  stroke-width: 2;
  fill: none;
  opacity: 0.7;
}

/* Botão de Microfone Padrão */
.btn-mic {
  background: rgba(30, 38, 23, 0.8);
  border: 3px solid var(--dourado);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), inset 0 0 15px rgba(212, 175, 55, 0.2);
  outline: none;
  z-index: 5;
}

.btn-mic svg {
  fill: var(--dourado);
  width: 40px;
  height: 40px;
}

.btn-mic.gravando {
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
  animation: pulse-gold 1.5s infinite;
}

@keyframes pulse-gold {
  0% { transform: scale(1); box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(212, 175, 55, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); }
}

/* Animação do Jarvis Core (Substitui o microfone quando processa) */
.jarvis-core {
  display: none;
  position: absolute;
  width: 110px;
  height: 110px;
  z-index: 10;
  perspective: 800px;
}

.jarvis-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 30px; height: 30px;
  transform: translate(-50%, -50%);
  background: var(--dourado-claro);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--dourado-claro), 0 0 35px var(--dourado), 0 0 50px rgba(212, 175, 55, 0.8);
  animation: pulse-core 1s infinite alternate;
}

.jarvis-ring {
  position: absolute;
  border-radius: 50%;
  transform-style: preserve-3d;
}

.ring1 {
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 2px dashed rgba(245, 214, 122, 0.8);
  animation: spin1 4s linear infinite;
}

.ring2 {
  top: 15px; left: 15px; right: 15px; bottom: 15px;
  border: 2px dotted rgba(212, 175, 55, 1);
  animation: spin2 6s linear infinite;
}

.ring3 {
  top: -5px; left: -5px; right: -5px; bottom: -5px;
  border: 1px solid rgba(245, 214, 122, 0.2);
  border-top: 3px solid rgba(245, 214, 122, 0.9);
  animation: spin3 5s linear infinite;
}

@keyframes pulse-core {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}
@keyframes spin1 { 100% { transform: rotateX(360deg) rotateY(180deg); } }
@keyframes spin2 { 100% { transform: rotateX(-180deg) rotateY(-360deg); } }
@keyframes spin3 { 100% { transform: rotateZ(360deg) rotateX(75deg); } }

/* Texto de Status Neon Dourado */
.status-text {
  font-size: 14px;
  color: var(--texto-secundario);
  text-align: center;
  line-height: 1.4;
  height: 40px;
  animation: pulsoNeonDourado 1.5s ease-in-out infinite alternate;
}

@keyframes pulsoNeonDourado {
  0% { opacity: 0.8; text-shadow: 0 0 5px rgba(212, 175, 55, 0.4); }
  100% { opacity: 1; text-shadow: 0 0 8px rgba(212, 175, 55, 0.8), 0 0 15px rgba(212, 175, 55, 0.6); }
}

/* Campo de Texto Funcional */
.input-wrapper {
  position: relative;
  width: 100%;
  margin-top: auto;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.icone-teclado {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  fill: var(--texto-secundario);
  pointer-events: none;
}

.input-teclado {
  width: 100%;
  background: rgba(30, 38, 23, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 30px;
  color: var(--texto-branco);
  padding: 14px 50px 14px 48px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-teclado:focus {
  border-color: var(--dourado);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.btn-enviar-texto {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-enviar-texto svg {
  width: 20px;
  height: 20px;
  fill: var(--dourado);
}

/* Aviso Legal da Anvisa */
.aviso-anvisa {
  font-size: 10px;
  color: #a0925c;
  text-align: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  line-height: 1.3;
  width: 100%;
  border-radius: 8px;
  box-sizing: border-box;
}

.aviso-anvisa strong {
  color: #d4af37;
}

/* Balão de Resposta */
.chat-container {
  width: 90%;
  max-width: 400px;
  display: none;
  flex-direction: column;
  gap: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--verde-claro);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--dourado);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 100;
}
.bubble { padding: 15px 20px; border-radius: 20px; font-size: 14px; line-height: 1.5; }
.bubble-ai { background-color: #ffffff; color: #333333; border-top-left-radius: 5px; }
.chat-fechar { align-self: flex-end; color: var(--dourado); cursor: pointer; font-weight: bold; }

/* Tela de Login e Cadastro */
.auth-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at center, #0a3d28, var(--verde-fundo));
  display: flex; justify-content: center; align-items: center;
  z-index: 9999; padding: 20px; box-sizing: border-box;
}

.auth-box {
  background: rgba(30, 38, 23, 0.95); 
  border: 1px solid var(--dourado);
  border-radius: 20px; padding: 35px 20px; 
  width: 100%; max-width: 350px;
  text-align: center; 
  box-shadow: 0 15px 40px rgba(0,0,0,0.9);
}

.btn-auth {
  width: 100%; padding: 14px; border-radius: 25px; border: none;
  background: var(--dourado); color: var(--verde-fundo);
  font-weight: bold; font-size: 15px; cursor: pointer; 
  margin-bottom: 12px; transition: transform 0.2s;
}

.btn-auth:active {
  transform: scale(0.96);
}

.btn-outline {
  background: transparent; 
  border: 1px solid var(--dourado); 
  color: var(--dourado);
}

/* Container de Senha com Olho Mágico */
.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 25px;
}
.password-wrapper .input-teclado {
  width: 100%;
  padding-right: 45px; /* Espaço para o ícone */
  margin-bottom: 0;
}
.btn-eye {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  outline: none;
  opacity: 0.7;
  transition: 0.2s;
}
.btn-eye:hover {
  opacity: 1;
}