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

body {
  background-color: #141414;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

.form-container {
  background-color: rgba(0, 0, 0, 0.85);
  width: 100%;
  max-width: 400px;
  padding: 40px 25px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease;
}

.form-container:hover {
  transform: translateY(-4px);
}

.form-container h2 {
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  color: #e5e5e5;
  margin-bottom: 6px;
}

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

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

.btn {
  background-color: #e50914;
  color: white;
  padding: 14px;
  width: 100%;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #f6121d;
  transform: scale(1.02);
}

footer {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

footer p {
  margin: 0;
}

.home-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 26px;
  color: #e50914;
  text-decoration: none;
  z-index: 10;
  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 1s linear infinite;
}

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

/* Responsive tweaks */
@media (max-width: 480px) {
  .form-container {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .form-container h2 {
    font-size: 22px;
  }

  .btn {
    font-size: 15px;
    padding: 12px;
  }

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