:root {
  /* Cores extraídas/baseadas na identidade ZapCRM */
  --zap-blue-dark: #0033a0;
  --zap-blue-light: #2563eb;
  --zap-orange: #f97316;
  --bg-color: #f0f4f8;
  --text-main: #1f2937;
  --text-muted: #6b7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
  background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Container Principal com efeito de sombra moderna */
.login-container {
  background-color: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

/* Animação suave de entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-container { animation: fadeIn 0.6s ease-out; }

/* Cabeçalho do Card */
.header { text-align: center; margin-bottom: 2.5rem; }

.header h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  font-weight: 700;
}

/* Ajuste da logo para evitar desfoque e desproporção */
.logo-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
}

/* Mensagem de Erro */
.error-message {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 0.85rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  border-left: 4px solid #b91c1c;
  display: none;
}

/* Formulário */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-main);
  background-color: #f9fafb;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--zap-blue-light);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

input::placeholder { color: #9ca3af; }

/* Botão */
button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to right, var(--zap-blue-dark), var(--zap-blue-light));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

button:active { transform: translateY(0); }

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Links */
.links { margin-top: 1.5rem; text-align: center; }
.links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.links a:hover { color: var(--zap-orange); text-decoration: underline; }

/* Spinner para carregamento */
.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 3px solid #fff;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: none;
  margin-left: 10px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Responsividade */
@media (max-width: 480px) {
  .login-container { padding: 2rem 1.5rem; }
  .header h2 { font-size: 1.2rem; }
}