@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  /* Asegúrate de tener una imagen llamada image.png en tu carpeta */
  background: url('./image.png') no-repeat; 
  background-size: cover;
  background-position: center;
  animation: animateBg 5s linear infinite;
}

@keyframes animateBg {
  100% {
    filter: hue-rotate(360deg);
  }
}

.login-box {
  position: relative;
  width: 400px;
  height: 480px; 
  background: transparent;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, .5);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(15px);
}

h2 {
  font-size: 2em;
  color: #fff;
  text-align: center;
}

.input-box {
  position: relative;
  width: 310px;
  margin: 30px 0;
  border-bottom: 1px solid #fff;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1em;
  color: #fff;
  pointer-events: none;
  transition: .5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
  top: -5px;
}

.input-box input {
  width: 100%;
  height: 50px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  color: #fff;
  padding: 0 35px 0 5px;
}

.input-box .icon {
  position: absolute;
  right: 8px;
  top: 50%;
  color: #fff;
  transform: translateY(-50%);
}

.remember-forgot {
  margin: -15px 0 15px;
  font-size: .9em;
  color: #fff;
  display: flex;
  justify-content: space-between;
}

.remember-forgot label input {
  margin-right: 3px;
}

.remember-forgot a {
  color: #fff;
  text-decoration: none;
}

.remember-forgot a:hover {
  text-decoration: underline;
}

button {
  width: 100%;
  height: 40px;
  background-color: #fff;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 1em;
  color: #000;
  font-weight: 500; 
  transition: background 0.3s ease;
}

button:hover {
  background-color: #e0e0e0;
}

/* Nuevo estilo para que el error combine con tu diseño de cristal */
.error-message {
  display: none;
  background: rgba(255, 50, 50, 0.2);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 50, 50, 0.5);
  font-size: 0.9em;
}

.register-link {
  font-size: .9em;
  color: #fff;
  text-align: center;
  margin: 25px 0 10px;
}

.register-link p a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.register-link p a:hover {
  text-decoration: underline;
}

@media (max-width:500px) {
  .login-box {
    width: 100%;
    height: 100vh;
    border: none;
    border-radius: 0;
  }
  .input-box {
    width: 290px;
  }
}

/* =========================================
   ESTILOS DEL DASHBOARD Y MENÚ PRINCIPAL
   ========================================= */
.menu-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  padding: 20px;
}

.menu-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  color: white;
}

.menu-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.menu-card ion-icon { 
  font-size: 3em; 
  margin-bottom: 10px; 
}

.btn-logout {
  width: 100%;
  margin-top: 30px; 
  background: rgba(255, 50, 50, 0.6); 
  color: white;
}

.btn-logout:hover {
  background: rgba(255, 50, 50, 0.9);
}

/* =========================================
   ESTILOS DE ADMINISTRACIÓN (Tablas y Columnas)
   ========================================= */
.admin-container { 
  display: flex; 
  gap: 30px; 
  align-items: flex-start; 
  margin-top: 20px; 
}

.form-side { 
  flex: 1; 
  min-width: 250px; 
}

.table-side { 
  flex: 1.8; 
  background: rgba(0, 0, 0, 0.3); 
  border-radius: 15px; 
  padding: 15px; 
  border: 1px solid rgba(255, 255, 255, 0.1); 
}

.table-scroll { 
  max-height: 400px; 
  overflow-y: auto; 
  padding-right: 5px;
}
.table-scroll::-webkit-scrollbar { width: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 5px; }

.glass-table { 
  width: 100%; 
  border-collapse: collapse; 
  color: #fff; 
}

.glass-table th { 
  text-align: left; 
  padding: 12px 8px; 
  border-bottom: 2px solid rgba(255,255,255,0.2); 
  font-size: 0.85em; 
  text-transform: uppercase; 
  color: #00d2ff; 
  position: sticky; 
  top: 0; 
  background: #1a1a2e; /* Fondo oscuro para que no se encimen al hacer scroll */
}

.glass-table td { 
  padding: 12px 8px; 
  border-bottom: 1px solid rgba(255,255,255,0.1); 
  font-size: 0.9em; 
  vertical-align: middle; 
}

.btn-action { 
  background: transparent; 
  color: #fff; 
  border: 1px solid #fff; 
  border-radius: 15px; 
  padding: 5px 12px; 
  cursor: pointer; 
  font-size: 0.75em; 
  transition: 0.3s; 
  margin-bottom: 3px; 
}

.btn-action:hover { background: #fff; color: #000; }
.btn-danger { border-color: #ff4d4d; color: #ff4d4d; }
.btn-danger:hover { background: #ff4d4d; color: #fff; }

.actions-row { 
  display: flex; 
  gap: 10px; 
  margin-top: 20px; 
}

/* Combobox y Selects de cristal */
.glass-select { 
  width: 100%; 
  height: 40px; 
  background: transparent; 
  border: none; 
  border-bottom: 1px solid #fff; 
  color: #fff; 
  font-size: 1em; 
  outline: none; 
  cursor: pointer; 
  margin-top: 5px; 
}
.glass-select option { 
  background: #1a1a2e; 
  color: #fff; 
}