/* ===== VARIÁVEIS - PALETA DE CORES PRIMÁRIAS ===== */
:root {
  --vermelho: #BE1311;
  --amarelo: #F9CD0A;
  --azul: #182E5F;
  --laranja: #E4641D;
  --branco: #FFFFFF;
  --cinza-claro: #F8F9FA;
  --cinza-medio: #E9ECEF;
  --cinza-escuro: #495057;
  --preto: #182E5F;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BOTÃO VOLTAR FIXO ===== */
.back-btn-fixed{
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--branco);
  color: var(--preto);
  border: 2px solid var(--cinza-medio);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 0 !important;
  gap: 0 !important;
  min-width: 50px !important;
  min-height: 50px !important;
}

.back-btn-fixed:hover{
  background: var(--vermelho);
  color: var(--branco);
  border-color: var(--vermelho);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(190, 19, 17, 0.3);
}

@media (max-width: 480px){
  .back-btn-fixed{ top: 10px; left: 10px; width: 45px; height: 45px; font-size: 1.1rem; }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--azul) 0%, var(--preto) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* ===== FORMAS GEOMÉTRICAS DECORATIVAS ===== */
body::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--vermelho);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  opacity: 0.1;
}

body::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--amarelo);
  border-radius: 50%;
  bottom: -150px;
  left: -150px;
  opacity: 0.1;
}

/* ===== FORMULÁRIO ===== */
form {
  background-color: var(--branco);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 10;
  animation: slideUp 0.6s ease;
}

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

/* ===== ÍCONE DO FORMULÁRIO (AGORA UM SOL!) ===== */
form::before {
  content: '☀️';
  font-size: 3rem;
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ===== LABELS ===== */
label {
  display: block;
  color: var(--preto);
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

label:first-of-type {
  margin-top: 0;
}

/* ===== INPUTS ===== */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid var(--cinza-medio);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--preto);
  background-color: var(--cinza-claro);
  transition: all 0.3s ease;
  outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--azul);
  background-color: var(--branco);
  box-shadow: 0 0 0 4px rgba(69, 123, 157, 0.1);
  transform: translateY(-2px);
}

input::placeholder {
  color: var(--cinza-escuro);
  opacity: 0.6;
}

/* ===== BOTÃO ===== */
.entry_button {
  width: 100%;
  padding: 1.2rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--vermelho) 0%, var(--laranja) 100%);
  color: var(--branco);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.entry_button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.4);
  background: linear-gradient(135deg, var(--laranja) 0%, var(--vermelho) 100%);
}

.entry_button:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(230, 57, 70, 0.3);
}

/* ===== LINK ===== */
a {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--branco);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border: 2px solid var(--branco);
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: transparent;
  position: relative;
  z-index: 10;
  letter-spacing: 0.5px;
}

a:hover {
  background-color: var(--amarelo);
  border-color: var(--amarelo);
  color: var(--preto);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.4);
}

/* ===== ERRO ===== */
p {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background-color: rgba(230, 57, 70, 0.1);
  border-left: 4px solid var(--vermelho);
  border-radius: 8px;
  color: var(--vermelho);
  font-weight: 600;
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 10;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

p:empty {
  display: none;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 480px) {
  form {
      padding: 2rem 1.5rem;
  }

  form::before {
      font-size: 2.5rem;
      margin-bottom: 1rem;
  }

  label {
      font-size: 0.9rem;
  }

  input {
      padding: 0.9rem 1rem;
      font-size: 0.95rem;
  }

  .entry_button {
      padding: 1rem;
      font-size: 1rem;
  }

  a {
      padding: 0.9rem 2rem;
      font-size: 0.95rem;
  }

  body::before,
  body::after {
      width: 250px;
      height: 250px;
  }
}

/* ===== FOCO ===== */
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: 2px;
}
