/* Fonts & Reset */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  overflow: hidden;
}

/* Preloader */
#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 6px solid rgba(255, 165, 0, 0.1);
  border-top: 6px solid #FFA500;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Stars canvas */
canvas#stars {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* Login Box */
.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px;
  background: rgba(20, 20, 20, 0.8);
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  text-align: center;
  animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translate(-50%, -60%); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}

.login-container h1 {
  font-size: 2em;
  color: #FFA500;
  text-shadow: 0 0 15px #FFA500;
  margin-bottom: 20px;
}

.login-form input, .login-form button {
  padding: 12px;
  margin: 10px;
  width: 240px;
  border: none;
  border-radius: 5px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  transition: 0.3s;
  outline: none;
}

.login-form input:focus {
  box-shadow: 0 0 10px #FFA500;
}

.login-form button {
  background: #FFA500;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

.login-form button:hover {
  background: #ffbb33;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #FFA500;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff9900;
}

/* Responsive */
@media (max-width: 600px) {
  .login-form input, .login-form button {
    width: 90%;
  }
}
