:root {
  --primary-color: #880e06; /* vermelho principal */
  --primary-dark: #5a0904; /* vermelho escuro */
  --primary-light: #b02d27; /* vermelho claro */
  --dark-bg: #1a1a2e; /* fundo escuro */
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-dark: #333;
  --text-light: #f8f9fa;
  --gradient: linear-gradient(135deg, #880e06 0%, #b02d27 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: url('../../images/login/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 1)
  );
  z-index: -1; /* fica atrás do conteúdo */
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  margin-right: 10px;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 5px;
  padding: 8px 15px !important;
}

.nav-link:hover {
  background: var(--gradient);
  color: white !important;
  transform: translateY(-2px);
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  max-width: 26%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  transition: transform 0.5s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  margin-bottom: 25px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: var(--gradient);
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  border: none;
  padding: 15px 20px;
}

.card-body {
  padding: 25px;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(136, 14, 6, 0.2);
}

.btn-ddt {
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(136, 14, 6, 0.3);
  width: 100%;
  margin-top: 10px;
}

.btn-ddt:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(136, 14, 6, 0.4);
  color: white;
}

.btn-ddt:active {
  transform: translateY(0);
}

.text-ddt {
  color: var(--primary-color) !important;
}

.alert-card {
  background: rgba(255, 255, 255, 0.95);
  border-left: 4px solid #880e06;
}

.alert-card strong {
  color: #5a0904;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  color: white;
  box-shadow: 0 5px 15px rgba(136, 14, 6, 0.4);
}

footer {
  margin-top: auto;
  background: #2e1a1ae6;
  color: var(--text-light);
  padding: 20px 0;
  text-align: center;
}

/* Animações suaves */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Responsividade */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  .logo {
    max-width: 80%;
  }
  .card-body {
    padding: 20px;
  }
}
