/* === RESET BÁSICO === */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #222;
  color: white;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  text-transform: uppercase;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centra login verticalmente */
  padding: 2rem;
  gap: 1rem;
}

/* === LOGIN === */
#login-box {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-align: center;
  width: 300px;
  display: flex;
  flex-direction: column;
}

#login-box input {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #aaa;
  font-size: 1rem;
}

#login-box button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  background: #222;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}

#login-box button:hover { background: #444; }

#login-error { 
  color: red; 
  margin-top: 0.5rem; 
  min-height: 1.2rem; 
}

/* === TARJETAS === */
#cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.card {
  text-decoration: none;
  background: white;
  width: 260px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  color: #222;
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* OCULTAR ELEMENTOS */
.hidden { display: none !important; }

/* BOTÓN LOGOUT */
#logout-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0.5rem 1rem;
  border: none;
  background: #b00020;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#logout-btn:hover { background: #d00030; }
