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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e0e0e 0%, #1a1a2e 50%, #0e0e0e 100%);
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 0;
}

.container {
  text-align: center;
  max-width: 420px;
  width: 90%;
  padding: 2rem;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #64c8ff, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

p {
  color: #aaaaaa;
  margin-bottom: 2rem;
}

input[type="password"] {
  background: rgba(30, 30, 50, 0.8);
  color: #ffffff;
  border: 1px solid rgba(100, 200, 255, 0.3);
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

input[type="password"]:focus {
  outline: none;
  border-color: #64c8ff;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
}

button {
  background: linear-gradient(135deg, #64c8ff, #a855f7);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(100, 200, 255, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 200, 255, 0.5);
}

button:active {
  transform: translateY(0);
}

footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #555;
}

.hidden {
  display: none;
}

.dashboard {
  max-width: 900px;
  width: 90%;
  padding: 2rem;
}

.dashboard h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #64c8ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-align: left;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.app-card {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #64c8ff, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.app-card:hover {
  background: rgba(36, 36, 56, 0.8);
  border-color: rgba(100, 200, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(100, 200, 255, 0.2);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #64c8ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
}

.game-badge {
  display: inline-block;
  background: rgba(100, 200, 255, 0.2);
  color: #64c8ff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-top: 0.75rem;
  font-weight: 600;
}

.logout-btn {
  background: rgba(51, 51, 51, 0.6);
  color: #fff;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn:hover {
  background: rgba(68, 68, 68, 0.8);
  box-shadow: none;
}

.error {
  color: #ff5555;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.dashboard h1 {
  animation: float 3s ease-in-out infinite;
}

@media (max-width: 600px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .dashboard h2 {
    font-size: 1.3rem;
  }
}
