:root {
  --primary-color: #001B52;
  --secondary-color: #34a853;
  --accent-color: #fbbc05;
  --dark-color: #1a365d;
  --light-color: #f8f9fa;
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}
@font-face {
    font-family: 'SakalMajalla';
    src: url('../fonts/SakkalMajalla/majalla.ttf') format('truetype');
}
@font-face {
  font-family: 'HelveticaNeue';
  src: url('../fonts/HelveticaNeue/helvetica-neue-regular.ttf') format('truetype');
}
a {
  text-decoration: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #001B52;
  background: white;
  display: flex;
    justify-content: center;
}
.login-container {
  display: flex;
  width: 100%;
  background: white;
  height: 100vh;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ------------------ Left Section (Form) ------------------ */
.login-left {
  flex: 1;
  background: linear-gradient(180deg, #F5F5F7 0%, #DEE0EE 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--dark-color);
}
.dotted-image {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  z-index: 1;
}
.form-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.welcome-mobile h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'SakalMajalla';
  color: var(--dark-color);
}
.welcome-mobile p {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.5;
}
.acnt {
  font-family: 'HelveticaNeue', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #062865;
  letter-spacing: 1.5px;
}
.acnt2 {
  font-family: 'HelveticaNeue', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #062865;
  letter-spacing: 1px;
}
input::placeholder {
  color: #ADADAD !important;
  font-family: 'HelveticaNeue', sans-serif;
  letter-spacing: 1px;
}
/* ------------------ Right Section (Welcome) ------------------ */
.login-right {
  flex: 1;
  background-image: url('../images/login-bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: white;
}
.welcome-desktop {
  max-width: 80%;
  text-align: center;
}
.welcome-desktop h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'SakalMajalla';
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}
.welcome-desktop p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}
.bottom-logo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
/* ------------------ Form Styling ------------------ */
.login-card {
  width: 100%;
}
.login-card h2 {
  font-family: 'SakalMajalla', sans-serif;
  color: var(--dark-color);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  margin-bottom: 8px;
  color: var(--dark-color);
  display: block;
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrapper i {
  position: absolute;
  left: 15px;
  color: #6c757d;
  font-size: 1.2rem;
  pointer-events: none;
  transition: color 0.3s;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
}
.form-control {
  width: 100%;
  padding-left: 20px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid #e1e5ee;
  transition: all 0.3s;
  font-size: 1rem;
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 27, 82, 0.25);
  outline: none;
}
.input-wrapper:focus-within i {
  color: var(--primary-color);
}
/* Custom select dropdown icon */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658A.5.5 0 0 1 2.854 5h10.292a.5.5 0 0 1 .403.658l-4.796 5.482a.5.5 0 0 1-.806 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}
/* ------------------ Buttons and Footer ------------------ */
.btn-login {
  background-color: #001B52;
  border: none;
  height: 50px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  color: white;
}
.btn-login:hover {
  background-color: #0A2A7A !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-login.loading,
.btn-login:disabled,
.btn-login:disabled:hover,
.btn-login:disabled:focus {
  background-color: #0A2A7A !important;
  color: #ffffff !important;
  opacity: 1 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.btn-login:active,
.btn-login:active:hover,
.btn-login:active:focus {
  background-color: #0A2A7A !important;
  color: #ffffff !important;
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.btn-login:focus {
  background-color: #0A2A7A !important;
  color: #ffffff !important;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 27, 82, 0.25);
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.forgot-link:hover {
  color: var(--secondary-color);
}
/* .form-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
} */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
/* ------------------ Security Notice ------------------ */
.security-notice {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-top: 30px;
  border-left: 4px solid var(--accent-color);
}
.security-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}
.security-notice i {
  color: var(--accent-color);
  margin-right: 10px;
}
/* ------------------ PASSWORD TOGGLE ICON STYLING ------------------ */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper .toggle-password {
  position: absolute !important;
  right: 15px !important;
  left: auto !important;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
  transition: color 0.3s;
  background: none;
  border: none;
  padding: 0;
}

.password-input-wrapper .toggle-password:hover {
  color: var(--primary-color);
}

.password-input-wrapper .form-control {
  padding-right: 45px !important;
}

/* ------------------ EYE ICON + LOCK PERFECT FIX ------------------ */
.input-wrapper .toggle-password {
  position: absolute !important;
  right: 15px !important;
  left: auto !important;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
  transition: color 0.3s;
}
.input-wrapper .toggle-password:hover {
  color: var(--primary-color);
}
/* .input-wrapper:has(.toggle-password) .form-control {
  padding-left: 10px !important;
  padding-right: 45px !important;
  height: 50px !important;
} */
.form-check-input {
  width: 1.1em;
  height: 1.1em;
  border: 2px solid #6c757d !important;
  background-color: transparent;
  cursor: pointer;
}
/* Keep same border color when focused */
.form-check-input:focus {
  box-shadow: none !important;
  border-color: #6c757d !important;
}
/* When checked, fill with same grey */
.form-check-input:checked {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}
/* ------------------ Responsive ------------------ */
@media (max-width: 768px) {

  body {
    background: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  /* Main card container */
  .login-container {
    flex-direction: column;
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    height: auto !important;
  }

  /* TOP SECTION — background image */
  .login-right {
    order: 1;
    width: 100%;
    height: 220px;
    padding: 25px;
    background-size: cover;
    background-position: center;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  /* Desktop text hidden; mobile text visible */
  .welcome-desktop {
    display: block !important;
  }
.welcome-mobile {
    display: none !important;
  }

  
  .welcome-desktop h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .welcome-desktop p {
    font-size: 0.95rem;
    opacity: 0.85;
  }

  .bottom-logo {
    display: none !important;
  }

  /* BOTTOM SECTION — login form */
  .login-left {
    order: 2;
    width: 100%;
    padding: 25px;
    background: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .form-wrapper {
    width: 100%;
  }

  /* minor adjustments */
  .login-card h2 {
    font-size: 1.4rem;
  }

  .dotted-image {
    display: none !important;
  }

}