/* style.css - Teleporting Portal */
/* Dark sci-fi theme with glowing neon accents */

body {
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at center, #0b0e16, #050608);
  color: #d6d6e3;
  margin: 0;
  overflow-x: hidden;
}

/* --- Portal intro --- */
#portal-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  transition: opacity 1s ease;
}

#portal-intro.active img {
  animation: glow 3s ease-in-out infinite alternate;
}

#portal-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}

#activatePortal {
  background: linear-gradient(90deg, #3b00ff, #9f00ff);
  border: none;
  color: white;
  padding: 12px 25px;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 0 10px #9f00ff;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 5px #3b00ff); }
  to { filter: drop-shadow(0 0 20px #9f00ff); }
}

/* --- Login form --- */
#loginForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10vh;
}

.hidden { display: none; }

input, button {
  margin: 5px;
  padding: 10px;
  border-radius: 5px;
  border: none;
}

button {
  background: linear-gradient(90deg, #3b00ff, #9f00ff);
  color: #fff;
  cursor: pointer;
  transition: transform .2s;
}

button:hover {
  transform: scale(1.05);
}

/* --- Dashboard --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: rgba(20, 20, 30, 0.85);
  box-shadow: 0 0 20px #3b00ff;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 30px;
}

.tile {
  background: rgba(40, 40, 60, 0.8);
  border-radius: 8px;
  box-shadow: 0 0 10px #3b00ff77;
  text-align: center;
  padding: 20px;
  transition: all .3s;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px #9f00ffcc;
}

.tile img {
  height: 60px;
  margin-bottom: 10px;
}

.tile-actions {
  margin-top: 10px;
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px #9f00ff;
}
