* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  background-color: #141414;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

#login-form {
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease;
}

#login-form:hover {
  transform: translateY(-5px);
}

#login-form label {
  font-size: 13px;
  color: #e5e5e5;
  margin-bottom: 5px;
}

#login-form input {
  padding: 12px;
  font-size: 15px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

#login-form input:focus {
  outline: none;
  background-color: #444;
  box-shadow: 0 0 0 2px #e50914;
}

#login-form button {
  background-color: #e50914;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#login-form button:hover {
  background-color: #f6121d;
  transform: scale(1.02);
}

footer {
  position: absolute;
  bottom: 15px;
  text-align: center;
  font-size: 12px;
  color: #888;
  width: 100%;
}

footer p {
  margin: 0;
}

.home-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 26px;
  color: #e50914;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.home-icon:hover {
  transform: scale(1.2);
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: #e50914;
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  #login-form {
    padding: 30px 20px;
    gap: 15px;
  }

  #login-form input,
  #login-form button {
    font-size: 14px;
  }

  .home-icon {
    font-size: 22px;
  }
}
