/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}


/* Main Container */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Login / Form Card */
.login-card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}

/* Titles and Subtitles */
.login-card h2 {
  font-size: 26px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.login-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

/* Input Group */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 12px 44px 12px 44px; /* space for both left icon and right toggle */
  border: 1px solid #d9dce1;
  border-radius: 8px;
  background: #f5f6fa;
  font-size: 15px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  border-color: #4c63e3;
  background: #fff;
  outline: none;
}

/* Left Icon (lock) */
.input-group i:first-child {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 16px;
}

/* Right Icon (toggle password) */
.input-group .toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
  font-size: 16px;
  transition: color 0.3s ease;
}

.input-group .toggle-password:hover {
  color: #4c63e3;
}

/* Forgot Password Link */
.forgot-password {
  text-align: right;
  margin: -10px 0 20px;
}

.forgot-password a {
  font-size: 13px;
  color: #4c63e3;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Buttons */
.login-card button {
  width: 100%;
  background: #2e8b57; /* soft green */
  color: #fff;
  font-size: 16px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-card button:hover {
  background: #256d46; /* darker green on hover */
}

/* OTP Input Group */
.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.otp-input-group input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 18px;
  border: 1px solid #d9dce1;
  border-radius: 8px;
  background: #f5f6fa;
  transition: all 0.3s ease;
}

.otp-input-group input:focus {
  border-color: #4c63e3;
  background: #fff;
  outline: none;
}

/* Resend OTP */
.resend-otp {
  text-align: center;
  margin-bottom: 20px;
}

.resend-otp a {
  font-size: 13px;
  color: #4c63e3;
  text-decoration: none;
  transition: 0.3s ease;
}

.resend-otp a:hover {
  text-decoration: underline;
}

/* Return to Login Button */
.btn-return {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #ff0000;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

.btn-return:hover {
  background: #bb0000;
  color: #fff;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 500px) {
  .login-card {
    padding: 30px 20px;
  }

  .otp-input-group {
    gap: 8px;
  }

  .otp-input-group input {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

/* Blurred background layer */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/sjs_facade.jpg');
  background-size: cover; /* fills entire screen */
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px) brightness(0.8);
  transform: scale(1.1); /* slightly zooms to avoid blur edges */
  z-index: 0;
}

/* Clear centered version of the image */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/sjs_facade.jpg');
  background-size: contain; /* shows full image without cropping */
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Keep login elements above both layers */
.login-page {
  position: relative;
  z-index: 2;
}

