@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Orbitron:wght@400;700&display=swap');

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background-color: #0a0e17;
  color: #e0e0e0;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 2;
  /* Add backdrop filter for glass effect */
  backdrop-filter: blur(10px);
  background-color: rgba(26, 32, 53, 0.4);
  border-radius: 16px;
  padding: 40px;
  overflow-y: auto;
  max-height: 100vh;
}

.login-form,
.registration-form {
  background-color: rgba(26, 32, 53, 0.9);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
  max-width: 400px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.login-form:hover,
.registration-form:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(79, 195, 247, 0.8);
}

h1 {
  font-family: 'Orbitron', sans-serif;
  color: #4fc3f7;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
  font-size: calc(1.5rem + 1vw);
  text-align: center;
}

h2 {
  margin: 20px 0 10px;
  font-family: 'Orbitron', sans-serif;
  color: #4fc3f7;
  font-size: calc(1rem + 0.5vw);
}

.logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-size: 16px;
}

input:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(79, 195, 247, 0.5);
}

.remember-me-container {
  margin: 15px 0;
  text-align: left;
}

.remember-me-container label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #e0e0e0;
}

.remember-me-container input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #4fc3f7;
}

.remember-me-container span {
  user-select: none;
}

.btn {
  display: inline-block;
  background-color: #4fc3f7;
  color: #0a0e17;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background-color: #3ba8db;
}

#fireCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#audioPlayer {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  background-color: rgba(26, 32, 53, 0.9);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

#audioPlayer.minimized {
  transform: translateY(calc(100% - 40px));
}

#audioPlayer .toggle-player {
  position: absolute;
  top: -15px;
  right: 10px;
  background-color: rgba(26, 32, 53, 0.9);
  border-radius: 50% 50% 0 0;
  width: 30px;
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #4fc3f7;
}

#audioPlayer audio {
  width: 250px;
  max-width: 100%;
}

#customAudioInput {
  width: 250px;
  margin-top: 10px;
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: none;
  border-radius: 4px;
}

.welcome-message {
  font-family: 'Orbitron', sans-serif;
  color: #4fc3f7;
  font-size: calc(1.5rem + 1vw);
  text-align: center;
  text-shadow: 0 0 20px rgba(79, 195, 247, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 20px;
    border-radius: 0;
    height: auto;
    min-height: 100vh;
  }
  
  .login-form,
  .registration-form {
    padding: 20px;
    max-width: 100%;
    width: calc(100% - 40px);
  }
  
  h1 {
    font-size: calc(1.2rem + 1vw);
  }
  
  #audioPlayer {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
  }
  
  #audioPlayer.minimized {
    transform: translateX(-50%) translateY(calc(100% - 40px));
  }
  
  #audioPlayer audio {
    width: 100%;
  }
  
  #customAudioInput {
    width: 100%;
  }
  
  .logo {
    width: 100px;
  }
  
  input, .btn {
    font-size: 14px;
  }
  
  /* Fix for dashboard on mobile */
  .dashboard-tabs {
    flex-wrap: wrap;
  }
  
  .tab {
    flex: 1 0 40%;
    text-align: center;
    margin-bottom: 5px;
    font-size: 14px;
  }
  
  /* Fixes for map container on mobile */
  #map-container {
    height: 400px !important;
  }
  
  #event-list {
    height: 150px !important;
  }
}