/* ================= VARIÁVEIS ================= */
:root {
  --brand-primary: #f97316; 
  --brand-secondary: #ea580c;
  --bg-color: #f8fafc;
  --text-main: #1f2937;
  --text-muted: #6b7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
  background: linear-gradient(135deg, #fef3c7 0%, #f3f4f6 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Container Principal */
.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;
  animation: fadeIn 0.6s ease-out;
}

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

/* 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;
}

.logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 0.5rem auto;
  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(--brand-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

input::placeholder { color: #9ca3af; }

/* Botão */
button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to right, var(--brand-secondary), var(--brand-primary));
  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(249, 115, 22, 0.3);
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: 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(--brand-primary); 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); } }