/* ======== ESTILO BASE ======== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #eef6fa 0%, #f9fbfc 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======== TARJETA DE LOGIN ======== */
.login-contenedor {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 40px 35px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

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

.login-contenedor h1 {
  margin-bottom: 25px;
  color: #315d7e;
  font-weight: 600;
  font-size: 1.6em;
}

/* ======== CAMPOS ======== */
.login-contenedor label {
  display: block;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 0.9em;
  color: #3e5c72;
}

.login-contenedor input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c7d7e2;
  font-size: 1em;
  transition: all 0.2s ease;
  background: #f9fcfe;
}

.login-contenedor input:focus {
  outline: none;
  border-color: #7bb6d4;
  box-shadow: 0 0 6px rgba(123, 182, 212, 0.4);
  background: #fff;
}

/* ======== BOTÓN ======== */
button {
  margin-top: 18px;
  width: 100%;
  background: linear-gradient(135deg, #4b7ea7, #6cb2d8);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(75, 126, 167, 0.3);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(75, 126, 167, 0.4);
  background: linear-gradient(135deg, #5e9bc2, #7bc0e0);
}

/* ======== PIE DE PÁGINA ======== */
.info {
  margin-top: 25px;
  font-size: 0.85em;
  color: #7c9cb0;
}

/* ======== PANTALLA PANEL ======== */
.topbar {
  background: linear-gradient(90deg, #4b7ea7, #7bc0e0);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #bfe3f5;
}

.topbar h2 {
  margin: 0;
  font-weight: 500;
}

.user-info {
  font-size: 0.9em;
}

.logout {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 6px;
  margin-left: 10px;
  transition: background 0.3s ease;
}

.logout:hover {
  background: rgba(255, 255, 255, 0.35);
}

.footer {
  text-align: center;
  padding: 10px;
  color: #8ba4b2;
  font-size: 0.9em;
  margin-top: 40px;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 480px) {
  .login-contenedor {
    padding: 30px 25px;
  }
}
