html, body {
  margin: 0;
  padding: 0;
}
body {
  background-image: url('../img/school.png');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #fca311;
  min-height: 100vh;
  min-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.login-header-logo {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.login-header-logo .taal-logo {
  width: 50px;
  height: 50px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.login-header-logo .taal-logo-icon {
  width: 50px;
  height: 50px;
  display: none;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.25);
  font-size: 1.35rem;
  color: white;
  align-items: center;
  justify-content: center;
}
.login-header-logo .taal-header-text {
  margin: 0;
}
.login-header-logo .taal-school-name {
  margin: 0 0 0.15rem 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.login-header-logo .taal-address {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.login-left-half {
  width: 48%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 5.5rem 0 2rem 2.5rem;
}

.login-container {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 24px 28px 28px 28px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  min-height: 400px;
  color: white;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.login-container form {
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
}
.login-container h4 {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.login-container .login-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
}


.login-container .mb-3 {
  margin-bottom: 0.65rem !important;
}
.login-container .mb-4 {
  margin-bottom: 0.9rem !important;
}

.login-container .input-group {
  width: 100%;
  max-width: 100%;
}
.input-group {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.input-group-text {
  background-color: white;
  border: none;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle-btn {
  cursor: pointer;
  background-color: white !important;
  border: none;
}
.password-toggle-btn:hover {
  background-color: #f8f9fa !important;
}

.input-group-text img,
.input-group-text .bi {
  font-size: 1rem;
  color: #6c757d;
}

.login-container .form-control {
  padding: 0.45rem 0.6rem;
  font-size: 0.875rem;
  min-height: 36px;
}
/* Hide browser native password reveal (prevents duplicate eye icons) */
.login-container input[type="password"]::-ms-reveal,
.login-container input[type="password"]::-ms-clear,
.login-container input[type="password"]::-webkit-contacts-auto-fill-button,
.login-container input[type="password"]::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.login-container .input-group-text {
  padding: 0.4rem 0.5rem;
  min-height: 36px;
}
.login-container .input-group-text .bi {
  font-size: 0.9rem;
}
.form-control {
  border: none;
  padding-left: 6px;
  font-size: 1rem;
  box-shadow: none;
}

.form-control:focus {
  outline: none;
  box-shadow: none;
}

.login-container .btn-login {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
}
.btn-login {
  background-color: #fca311;
  color: white;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.btn-login:hover {
  background-color: #ff8800;
  color: white;
}

.login-container .form-check-label,
.login-container .forgot-password {
  font-size: 0.8rem;
}
.form-check-label,
.forgot-password {
  font-size: 0.9rem;
}

.forgot-password {
  float: right;
}

@media (max-width: 768px) {
  .login-left-half {
    width: 100%;
    padding: 1.5rem;
    justify-content: center;
  }
  .login-header-logo {
    top: 1rem;
    left: 1rem;
  }
  .login-header-logo .taal-logo,
  .login-header-logo .taal-logo-icon {
    width: 44px;
    height: 44px;
  }
  .login-header-logo .taal-school-name {
    font-size: 1rem;
  }
  .login-header-logo .taal-address {
    font-size: 0.68rem;
  }
}

/* Forgot Password Modal - Professional styling */
#forgotPasswordModal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
#forgotPasswordModal .modal-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  border: none;
}
#forgotPasswordModal .modal-title {
  font-weight: 600;
  font-size: 1.2rem;
}
#forgotPasswordModal .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
#forgotPasswordModal .modal-header .btn-close:hover {
  opacity: 1;
}
#forgotPasswordModal .modal-body {
  padding: 1.75rem 1.5rem;
}
#forgotPasswordModal .modal-body p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
#forgotPasswordModal .form-label {
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.5rem;
}
#forgotPasswordModal .form-control {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 1rem;
}
#forgotPasswordModal .form-control:focus {
  border-color: #fca311;
  box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.2);
}
#forgotPasswordModal #forgotSuccessMsg {
  border-radius: 8px;
  border: none;
  background-color: #f0fdf4;
  color: #166534;
}
#forgotPasswordModal .btn-login {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 0.5rem;
}
