* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}
 

/* Background container */
 .bg-container {
  position: relative;
  width: 100vw;      /* full viewport width */
  height: 100vh;     /* full viewport height */
  overflow: hidden;
}

/* Background images */
.bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 5s ease-in-out;
  transform: scale(1);
}
 

/* Login card */
.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 490px;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.9);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

 .card-header .logo {
  font-size: 24px;
  text-align: center;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: transparent;
}
 
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;       
  height: 100%;     
  background-size: cover;    
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 5s ease-in-out;
  transform: scale(1);
}


.card-header p {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

 .input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 15px;
  background-color: #fff;
}

.input-group i {
  margin-right: 10px;
  color: #888;
}

.input-group input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

/* Math captcha - security check block */
.captcha-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
}

.captcha-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.captcha-label i {
  margin-right: 6px;
  color: #1d4ed8;
}

.captcha-question {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.captcha-input-wrap {
  margin-bottom: 0;
}

.captcha-input-wrap input {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
}

/* Placeholder: light font for captcha "Enter your answer" */
.captcha-answer-input::placeholder,
.captcha-input-wrap input::placeholder {
  font-weight: 300;
  color: #94a3b8;
  opacity: 1;
}

.captcha-answer-input::-webkit-input-placeholder,
.captcha-input-wrap input::-webkit-input-placeholder {
  font-weight: 300;
  color: #94a3b8;
}

.captcha-answer-input::-moz-placeholder,
.captcha-input-wrap input::-moz-placeholder {
  font-weight: 300;
  color: #94a3b8;
  opacity: 1;
}

.captcha-answer-input:-ms-input-placeholder,
.captcha-input-wrap input:-ms-input-placeholder {
  font-weight: 300;
  color: #94a3b8;
}

/* Login button - large, impactful primary CTA */
.btn-login,
input.btn-login,
input[type="submit"].btn-login {
  width: 100%;
  min-height: 56px;
  padding: 18px 28px;
  margin-top: 8px;
  margin-bottom: 0;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.45), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  -webkit-appearance: none;
  appearance: none;
}

.btn-login:hover,
input.btn-login:hover,
input[type="submit"].btn-login:hover {
  background: linear-gradient(145deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55), 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.btn-login:active,
input.btn-login:active,
input[type="submit"].btn-login:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.4);
}

/* Forgot Password link - secondary action */
.login-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.btn-forgot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-forgot i {
  font-size: 13px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.btn-forgot:hover {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.08);
}

.btn-forgot:hover i {
  color: #1d4ed8;
}

/* Legacy button / input submit fallbacks - match main Login button */
button,
input[type="submit"] {
  width: 100%;
  min-height: 56px;
  padding: 18px 28px;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
  background: linear-gradient(145deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
}

.card-footer {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

.card-footer a {
  color: #1d4ed8;
  text-decoration: none;
}

.card-footer a:hover {
  text-decoration: underline;
}

 .bg-image.show {
  opacity: 1;
  transform: scale(1.05);
}

/* ========== Mobile / responsive: only login section, no background images ========== */
@media (max-width: 768px) {
  /* Hide background images on mobile - no scroll, only login visible */
  .bg-container .bg-image {
    display: none !important;
  }

  .bg-container {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  }

  .login-card {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    top: 0;
    transform: none;
    margin: 0;
    padding: 24px 20px 32px;
    border-radius: 0;
    box-shadow: none;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card-header .logo img,
  .card-header img.img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 70px;
  }

  .card-header p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .captcha-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .captcha-question {
    font-size: 18px;
  }

  .login-actions {
    margin-top: 18px;
    padding-top: 16px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 20px 16px 28px;
  }

  .card-header .logo {
    font-size: 20px;
  }

  .btn-login,
  input.btn-login,
  input[type="submit"].btn-login {
    min-height: 52px;
    font-size: 16px;
    padding: 16px 24px;
  }
}

/* Prevent horizontal scroll and lock viewport on mobile */
html, body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* icons login page  */

   