/* === FULL-PAGE BACKGROUND === */
body, html {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Add blur only to the image */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/login-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px); /* adjust blur amount */
  transform: scale(1.05); /* prevents edge blur cutoff */
  z-index: -1; /* keeps it behind content */
}

/* === LOGIN CONTAINER === */
.login-container {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1; /* ensure content is above blurred bg */
}

/* === LOGIN CARD === */
.login-card {
  background-color: #df6412;
  color: white;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
}


/* === CARD === */
.login-card {
  background-color: #df6412;
  color: white;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* === TITLE === */
.login-title {
  font-size: clamp(1.3rem, 1.5vw, 2rem);
  font-weight: 600;
}

/* === FORM ELEMENTS === */
.input-field {
  border-radius: 8px;
  border: none;
  padding: 10px 12px;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1rem);
}

.form-label {
  font-size: clamp(0.9rem, 0.8vw + 0.5rem, 1rem);
}

.forgot-password {
  font-size: clamp(0.85rem, 0.7vw + 0.3rem, 0.9rem);
  text-decoration: underline;
  color: white;
}

/* === LOGIN BUTTON === */
.login-button {
  background-color: #1877f2;
  border: none;
  padding: 10px;
  font-weight: bold;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1rem);
  border-radius: 8px;
  color: white;
  transition: background-color 0.2s ease;
}

/* Button hover effect */
.login-button:hover {
  background-color: #4a90f2; /* lighter blue on hover */
  color: white;
}

/* Prevent transparency on click/tap */
.login-button:focus,
.login-button:active {
  background-color: #1877f2 !important;
  color: white;
  box-shadow: none;
  outline: none;
}


/* === ALERTS === */
.alert {
  font-size: clamp(0.85rem, 0.8vw + 0.3rem, 0.95rem);
  padding: 0.5rem 0.75rem;
}

/* === RESPONSIVENESS === */
@media (max-width: 576px) {
  .login-title {
    font-size: clamp(1.2rem, 2vw + 0.8rem, 1.5rem);
  }

  .input-field,
  .login-button {
    font-size: clamp(0.85rem, 1vw + 0.3rem, 0.95rem);
  }

  .login-card {
    padding: 1.5rem 1rem;
    margin: 0 20px;
  }
}

@media (max-width: 360px) {
  .login-title {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.3rem);
  }

  .form-label,
  .forgot-password {
    font-size: clamp(0.75rem, 0.7vw + 0.2rem, 0.85rem);
  }

  .input-field,
  .login-button {
    font-size: clamp(0.75rem, 1vw + 0.2rem, 0.9rem);
    padding: 8px 10px;
  }

  .login-card {
    border-radius: 12px;
    padding: 1rem;
    margin: 0 15px;
  }
}

.forgot-password {
  color: #fefefe !important; /* Blue text */
  text-decoration: none !important; /* No underline */
}
