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

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  line-height: 1.5;
}

/* ------------------ LOGIN PAGE ------------------ */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 400px; /* mejor para móviles */
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.12);
  text-align: center;
  transition: transform 0.3s;
}

.login-box:hover {
  transform: translateY(-5px);
}

.input-group {
  text-align: left;
  margin-top: 15px;
}

.input-group label {
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.btn {
  width: 100%;
  padding: 12px;
  background: #2a9d8f;
  color: white;
  border: none;
  margin-top: 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #21867a;
  transform: scale(1.02);
}

#loginMessage {
  margin-top: 10px;
  color: red;
  font-size: 14px;
}

/* ------------------ DASHBOARD NAV ------------------ */
.admin-nav {
  background: #2a9d8f;
  padding: 15px 25px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logout-btn {
  background: #e63946;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.logout-btn:hover {
  background: #c6282e;
  transform: scale(1.05);
}

/* ------------------ DASHBOARD CONTENT ------------------ */
.admin-content {
  padding: 25px;
}

.admin-cards {
  display: flex;
  flex-wrap: wrap; /* importante para móviles */
  gap: 20px;
  margin-top: 20px;
}

.admin-card {
  background: white;
  padding: 20px;
  flex: 1 1 250px; /* flexible y mínimo ancho de 250px */
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.admin-card:hover {
  transform: translateY(-5px);
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 768px) {
  .admin-cards {
    flex-direction: column;
  }

  .admin-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .logout-btn {
    margin-top: 10px;
  }

  .login-box {
    padding: 25px 20px;
  }
}
