/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========== BODY BACKGROUND (NIGHT GRADIENT STYLE) ========== */
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(216, 216, 216);
  position: relative;
  overflow: hidden;
}

/* Star effect */
body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(white 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
}

/* ========== MAIN CONTAINER ========== */
.container {
  width: 100%;
  max-width: 420px;
  text-align: center;
  z-index: 2;
}

/* ========== LOGO SECTION ========== */
.logo-box {
  margin-bottom: 20px;
}

.logo-box img {
  width: 240px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4));
}

/* ========== LOGIN CARD (GLASS EFFECT) ========== */
.login-box {
  background: rgb(192, 190, 190);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

.login-box h2 {
  color: #fff;
  margin-bottom: 25px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ========== INPUT FIELDS ========== */
.input-field {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 50px;
  border: none;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  transition: 0.3s;
}

.input-field::placeholder {
  color: rgba(255,255,255,0.7);
}

.input-field:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 10px #00d4ff;
}

/* ========== BUTTON ========== */
.login-btn {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background:  #033296;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: #fff;
  background:#107AE8;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 0.7s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ========== ERROR MESSAGE ========== */
.error {
  background: rgba(255, 0, 0, 0.15);
  color: #ffb3b3;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 15px;
  display: none;
}

/* ========== BACK LINK ========== */
.back-home {
  margin-top: 18px;
}

.back-home a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  transition: 0.3s;
}

.back-home a:hover {
  color: #000;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 480px) {
  .login-box {
    padding: 30px 20px;
  }

  .logo-box img {
    width: 180px;
  }
}
