* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  align-items: center;
  background: url("../Assets/Images/BackgroundImage.jpg") no-repeat center center/cover;
  display: flex;
  height: 100vh;
  justify-content: center;
}

.login-container {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  padding: 40px 30px;
  text-align: center;
  width: 100%;
}

.login-container button {
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  padding: 12px;
  transition: transform 0.2s ease, opacity 0.3s ease;
  width: 100%;
}

.login-container button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.login-container h2 {
  color: #fff;
  /* white for contrast */
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.login-container img {
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  margin-bottom: 15px;
  max-width: 100px;
}

.login-container input {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  outline: none;
  padding: 12px;
  width: 100%;
}

.login-container input::placeholder {
  color: rgb(255, 255, 255);
}

.logo {
  background-color: #fff;
}

#error {
  color: #f7f7f7;
  font-size: 14px;
  margin-top: 10px;
}

/* Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button loading state */
.login-container button.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.login-container button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}