/* Estilos globais */
:root {
  --primary: #C20000;
  --primary-dark: #C20000;
  --primary-light: #C20000;
  --background: #0a0a0a;
  --background-light: #111;
  --background-lighter: #222;
  --text: #e0e0e0;
  --text-dim: #aaa;
  --text-bright: #fff;
  --accent: #C20000;
  --danger: #ff5252;
  --shadow:#C20000(0, 230, 118, 0.2);
  --glow:#C20000(0, 230, 118, 0.6);
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  z-index: 2;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--background);
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1;
  position: relative;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

button:focus {
  outline: none;
}

footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Animações globais */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Efeito de scanner */
.scanner-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px 1px var(--primary);
  opacity: 0.8;
  z-index: 10;
  animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
  0% {
    top: 0%;
  }
  75% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

/* Adaptações para dispositivos móveis */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
}