/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== BODY ===== */
body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a0000, #000000 70%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 16px;
}

/* ===== LOGO ===== */
.logo-wrapper {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  animation: logoFloat 4s ease-in-out infinite;
}

.logo {
  width: 78px;
  height: auto;
  filter:
    drop-shadow(0 0 10px rgba(239, 68, 68, 0.35))
    drop-shadow(0 0 20px rgba(239, 68, 68, 0.15));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* ===== MARCA ===== */
.brand {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.brand-name {
  color: #ffffff;
  font-weight: 600;
}

.brand-sep,
.brand-years {
  color: #ef4444;
}

/* ===== BOTÃO DISCORD ===== */
.discord-button {
  margin-top: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px;
  border-radius: 10px;
  text-decoration: none;

  background: linear-gradient(135deg, #5865F2, #404EED);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;

  transition: all 0.25s ease;
}

.discord-button svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.discord-button:hover {
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.8);
  transform: translateY(-1px);
}

/* ===== CARD ===== */
.container {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #0f0f0f, #050505);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid #7f1d1d;
  box-shadow:
    0 0 20px rgba(255, 0, 0, 0.15),
    inset 0 0 15px rgba(255, 0, 0, 0.05);
}

/* ===== ÍCONE ===== */
.icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.icon svg {
  width: 46px;
  height: 46px;
  fill: rgba(220, 38, 38, 0.08);
  stroke: #dc2626;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.5));
}

/* ===== TÍTULO ===== */
h1 {
  text-align: center;
  font-size: 1.55rem;
  margin-bottom: 22px;
  color: #ef4444;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

/* ===== LABEL ===== */
label {
  font-size: 0.85rem;
  color: #cfcfcf;
  display: block;
  margin-bottom: 6px;
}

/* ===== INPUT ===== */
input {
  width: 100%;
  padding: 12px 14px;
  background: #000000;
  border-radius: 10px;
  border: 1px solid #333;
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
  margin-bottom: 14px;
}

input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ===== BOTÃO ===== */
button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

button:hover {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
  transform: translateY(-1px);
}

/* ===== RESULTADO ===== */
#resultado {
  margin-top: 22px;
  text-align: center;
  animation: fadeIn 0.35s ease;
}

.hidden {
  display: none;
}

#codigo {
  font-size: 2.2rem;
  letter-spacing: 4px;
  margin-top: 6px;
  color: #ef4444;
  font-family: "Courier New", monospace;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 420px) {
  .logo { width: 64px; }
  h1 { font-size: 1.3rem; }
  .container { padding: 22px; }
  #codigo { font-size: 1.9rem; }
}

@media (max-width: 360px) {
  .logo { width: 56px; }
  h1 { font-size: 1.2rem; }
  #codigo { font-size: 1.7rem; }
}

/* ===== ANIMAÇÕES ===== */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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