/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* Fundo preto e branco animado */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('fotologo.jpg') no-repeat center center/cover;
  filter: grayscale(100%) brightness(15%);
  z-index: 1;
  animation: bgMove 30s ease-in-out infinite alternate;
}

@keyframes bgMove {
  0% { transform: scale(1) translate(0,0); }
  50% { transform: scale(1.05) translate(20px,20px); }
  100% { transform: scale(1) translate(0,0); }
}

/* Login container */
.login-container {
  position: relative;
  z-index: 2;
  background: #000;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 0 30px #fff3, 0 0 10px #fff inset;
  width: 95%;
  max-width: 450px;
  text-align: center;
  transform: translateY(-50px);
  opacity: 0;
  animation: fadeUp 1s forwards 0.3s;
}

@keyframes fadeUp {
  to { transform: translateY(0); opacity: 1; }
}

/* Logo */
.login-container .logo {
  width: 100px;
  margin: 1rem 0 1.5rem 0;
  animation: logoPulse 2s infinite alternate;
}

@keyframes logoPulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* Título */
h2 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 2.4rem;
  text-shadow: 0 0 8px #fff, 0 0 16px #fff;
  animation: glowText 2s infinite alternate;
}

@keyframes glowText {
  from { text-shadow: 0 0 8px #fff, 0 0 16px #fff; }
  to { text-shadow: 0 0 16px #fff, 0 0 32px #fff; }
}

/* Inputs com ícones */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 5px #fff22 inset, 0 0 10px #fff inset;
  transition: 0.3s, box-shadow 0.5s;
}

.form-group input:focus {
  outline: none;
  box-shadow: 0 0 12px #fff, 0 0 20px #fff inset;
}

.form-group .icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  opacity: 0.9;
  transition: transform 0.3s;
}

.form-group input:focus + .icon,
.form-group input:hover + .icon {
  transform: translateY(-50%) scale(1.2);
}

/* Botão Entrar */
button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 0 5px #fff;
  box-shadow: 0 0 10px #fff, 0 0 20px #fff inset;
  transition: 0.3s, transform 0.3s, box-shadow 0.3s;
}

button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #fff, 0 0 30px #fff inset;
}

/* Botão Página Principal */
.back-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 0 10px #fff, 0 0 20px #fff inset;
  transition: 0.3s, transform 0.3s, box-shadow 0.3s;
}

.back-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #fff, 0 0 40px #fff inset;
  background: linear-gradient(90deg, #fff, #ccc);
}

/* Social login apenas ícones */
.social-login {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-login button {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}

.social-login button:hover {
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 0 8px #fff);
}

.social-login img {
  width: 40px;
  height: 40px;
  filter: brightness(200%);
}

/* Toggle form */
.toggle-form {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.toggle-form a {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  transition: text-shadow 0.3s;
}

.toggle-form a:hover {
  text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

.back-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  color: #000; /* texto preto */
  background: #fff; /* fundo branco */
  text-decoration: none;
  box-shadow: 0 0 10px #fff, 0 0 20px #fff inset;
  transition: 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.back-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #fff, 0 0 40px #fff inset;
  background: linear-gradient(90deg, #fff, #ccc);
}
