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

body {
  font-family: "Poppins", sans-serif;
  /* Fundo: Gradiente suave do Cinza Claro para o Verde Claro do Dashboard */
  background: linear-gradient(135deg, #f0f2f5 0%, #e2e8f0 50%, #c8e6c9 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Animação de fundo (Bolinhas brancas/verdes translúcidas) */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(0,90,158,0.05)"/><circle cx="80" cy="40" r="1" fill="rgba(76,175,80,0.05)"/><circle cx="40" cy="80" r="1.5" fill="rgba(0,90,158,0.05)"/></svg>');
  animation: float 20s infinite linear;
  z-index: -1;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); }
  100% { transform: translateY(-100vh) rotate(360deg); }
}

.principal {
  width: 100%;
  max-width: 480px;
  padding: 20px;
  z-index: 1;
}

/* Container principal */
.container {
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Linha animada no topo do card */
.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  /* Gradiente usando o Azul do sistema e o Verde claro */
  background: linear-gradient(90deg, #005a9e, #81c784, #005a9e);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Logo/Branding */
.logo-area {
  text-align: center;
  padding: 30px 20px 20px;
  background: linear-gradient(135deg, rgba(0, 90, 158, 0.03), rgba(200, 230, 201, 0.15));
}

.logo-icon {
  width: 70px;
  height: 70px;
  /* Azul corporativo do Winner System */
  background: linear-gradient(135deg, #005a9e, #004080);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 10px 25px rgba(0, 90, 158, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.logo-icon i { font-size: 32px; color: white; }

.brand-name {
  font-size: 28px;
  font-weight: 700;
  color: #005a9e; /* Azul corporativo */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

/* Card de Login */
.login-card { padding: 35px; text-align: center; }
.login-card h2 { font-size: 24px; font-weight: 600; color: #333; margin-bottom: 8px; }
.subtitle { color: #666; font-size: 14px; margin-bottom: 30px; }

/* Formulário */
.formulario { display: flex; flex-direction: column; gap: 20px; }
.input-group { position: relative; }
.input-wrapper { position: relative; display: flex; align-items: center; }

.icon-input {
  position: absolute;
  left: 15px;
  color: #888;
  font-size: 16px;
  z-index: 2;
  transition: all 0.3s ease;
}

.formulario input {
  width: 100%;
  padding: 16px 20px 16px 45px;
  border: 2px solid #e1e1e1;
  border-radius: 16px;
  font-size: 16px;
  background: #f9f9f9;
  transition: all 0.3s ease;
  color: #333;
  outline: none;
}

.formulario input:focus {
  border-color: #005a9e; /* Azul corporativo */
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 90, 158, 0.1);
  transform: translateY(-2px);
}

.formulario input:focus + .icon-input,
.formulario input:focus ~ .icon-input {
  color: #005a9e;
}

.toggle-password {
  position: absolute;
  right: 15px;
  color: #888;
  cursor: pointer;
  font-size: 16px;
  z-index: 2;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #005a9e;
}

.forgot-password { text-align: right; margin-top: -10px; }
.forgot-password a { color: #005a9e; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s;}
.forgot-password a:hover { color: #004080; text-decoration: underline; }

/* Botões */
.btn-login {
  background: linear-gradient(135deg, #005a9e, #004080); /* Azul corporativo */
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 90, 158, 0.25);
  width: 100%;
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 90, 158, 0.35);
  background: linear-gradient(135deg, #006bba, #004080);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}