body {
  background-color: var(--cor-ouro-claro);
  font-family: Arial, sans-serif;
}

.auth-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: aparecerLogin 1s ease 2.3s forwards;
}

.auth-box {
  background-color: white;
  padding: var(--espaco-lg);
  border-radius: 0.8rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.auth-titulo {
  text-align: center;
  margin-bottom: var(--espaco-md);
  color: var(--cor-marrom-profundo);
}

.auth-erro {
  background-color: #ffe5e5;
  color: #b00020;
  padding: var(--espaco-sm);
  border-radius: 0.4rem;
  margin-bottom: var(--espaco-md);
  text-align: center;
}

.auth-logo {
  display: block;
  max-width: 225px; /* aumentei o tamanho */
  width: 100%;
  height: auto;
  margin: 0 auto; /* centraliza horizontalmente */
}


/* Splash ocupa a tela toda */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--cor-ouro-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  animation: sumirSplash 2.5s ease forwards;
}

/* Logo animada */
.splash-logo {
  width: 225px;
  animation: crescerLogo 1.5s ease forwards, piscar 0.3s ease 1.5s;
}

/* Animações */
@keyframes crescerLogo {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes piscar {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Some com a splash */
@keyframes sumirSplash {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes aparecerLogin {
  to {
    opacity: 1;
  }
}

/* Mensagem de sucesso */
.auth-sucesso {
  margin-top: var(--espaco-md);
  padding: var(--espaco-sm);
  background-color: #e9f7ef;
  border: 1px solid #b7e4c7;
  border-radius: 0.5rem;
  font-size: var(--fonte-pequena);
  text-align: center;
}

.auth-sucesso a {
  display: block;
  margin-top: var(--espaco-xs);
  color: var(--cor-terra);
  word-break: break-all;
}

/* ===== CELULAR PEQUENO ===== */
@media (max-width: 480px) {

  /* LOGIN CENTRAL mais confortável */
  .auth-container {
    padding: var(--espaco-md);
    align-items: center;
  }

  .auth-box {
    max-width: 100%;
    padding: var(--espaco-md);
    border-radius: 0.6rem;
  }

  .auth-titulo {
    font-size: 1.1rem;
    margin-bottom: var(--espaco-sm);
  }

  /* LOGO menor no mobile */
  .auth-logo {
    max-width: 160px;
  }

  /* INPUTS (se tiver) mais confortáveis */
  .auth-box input,
  .auth-box button {
    width: 100%;
    font-size: 0.9rem;
  }

  /* ERRO mais compacto */
  .auth-erro {
    font-size: 0.85rem;
    padding: 8px;
  }

  /* SUCESSO mais legível */
  .auth-sucesso {
    font-size: 0.85rem;
    padding: 8px;
  }

  /* SPLASH menor (evita logo gigante no celular) */
  .splash-logo {
    width: 160px;
  }
}