/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Source Sans Pro', sans-serif;
}

.cssp-login {
  background-color: #02743a;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 80px; /* Space for external links bar at bottom */
}

.cssp-login::before {
  content: '';
  position: absolute;
  left: auto;
  top: 0;
  bottom: 0;
  right: 0;
  background-image: url(/assets/font/login-overlay-01.png);
  height: 100%;
  width: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.right-asside-login {
  position: relative;
  width: 50%;
  text-align: end;
}

.form-box {
  max-width: 480px;
  padding: 28px;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.form-box .form-check label {
  font-weight: 500;
  color: #455465;
}

.master-plan-image {
  text-align: right;
}

.master-plan-image img {
  width: 60%;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.form-box .input-group {
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 2px 2px;
}

.form-box .form-label {
  color: #999999;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-box .form-check-input {
  border: 1px solid #a2afbe;
}

.form-box .input-group .form-control {
  border: none;
  box-shadow: none;
  outline: none;
  padding-left: 5px;
}

.form-box .input-group-text {
  background-color: transparent;
  border: none;
  padding: 6px 8px 6px 10px;
  color: #999999;
}

.login-logo {
  display: inline-block;
  margin-top: 20px;
  justify-content: end;
  text-align: center;
}

.text-like-logo {
  color: #02743a;
  font-weight: 800;
}

.login-logo img {
  width: 125px;
  margin-bottom: 3px;
}

.left-asside-login {
  margin: auto;
}

.login-logo h2 {
  font-size: 20px;
}

.external-login-links {
  position: absolute;
  bottom: 14px;
  left: 9%;
  right: 9%;
  z-index: 10;
}

.login-btn-style {
  background-color: #034f28;
  padding: 10px;
  border-radius: 10px;
  margin: auto;
  text-align: center;
  display: block;
  min-width: 200px;
  border: 3px solid #02743a;
  color: #fff;
  font-weight: 500;
  transition: all 0.4s ease;
  text-decoration: none;
}

.login-btn-style:hover {
  background-color: #012570;
  border: 3px solid #2a4e99;
  color: #fff;
}

.form-group .form-check .form-check-input {
  width: 1.5em;
  height: 1.5em;
}

.form-group .form-check label {
  display: inline-block;
  margin-top: 3px;
  margin-left: 6px;
}

/* Captcha Styling to match Bootstrap 5 Grid Columns */
#captcha {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
  color: #333;
}

#captcha span {
  width: 100%;
  color: #999999 !important;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: -5px;
  display: block;
  padding-top: 0 !important;
  opacity: 1 !important;
}

#CaptchaInputText {
  flex: 1;
  min-width: 120px;
  height: 42px !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  outline: none !important;
  box-shadow: none !important;
  text-transform: uppercase;
}

#CaptchaInputText:focus {
  border-color: #02743a !important;
}

#CaptchaImage {
  height: 42px !important;
  width: 120px !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 8px !important;
  object-fit: fill;
  margin-bottom: 0 !important;
  display: inline-block;
}

#captcha a {
  font-size: 0 !important;
  background-color: #dee2e6 !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 8px !important;
  height: 42px;
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000 !important;
  text-decoration: none !important;
  float: none !important;
  margin-top: 0 !important;
  margin-right: 0 !important;
  transition: background-color 0.2s;
}

#captcha a::before {
  content: "\F130";
  font-family: "bootstrap-icons" !important;
  font-size: 18px !important;
}

#captcha a:hover {
  background-color: #ced4da !important;
}

#captcha br {
  display: none !important;
}

.login-title {
  margin-top: 27px;
  color: #fff;
}

.sub-login-title {
  color: #02743a;
  border-bottom: 1px solid #e9e9e9;
  padding-bottom: 7px;
  position: relative;
}

.sub-login-title::before {
  content: '';
  position: absolute;
  left: 18px;
  width: 21px;
  height: 4px;
  bottom: -2.5px;
  background-color: #02743a;
}

.forgot-password {
  color: #999999;
  display: block;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.external-login-links li a {
  padding: 10px;
  background-color: #034f28;
  display: flex;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  text-align: center;
  transition: all .4s ease;
}

.external-login-links li:hover a {
  background-color: #012570;
}

.external-login-links ul li i {
  border: 1px solid #fff;
  border-radius: 100px;
  width: 45px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}

.external-login-links ul {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-left: 0;
}

/* Modifiers for Admin Login (No bottom bar, full height) */
.cssp-login.no-bottom-bar {
  padding-bottom: 0px;
}

/* Responsive Media Queries */
@media screen and (max-width:1024px) {
  .external-login-links li a {
    font-size: 14px; 
    text-align: left;
  }
  
  .external-login-links ul {
    flex-wrap: wrap;
  }
}

@media screen and (max-width:765px) {
  .login-title {
    margin-top: 0px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 30px !important;
  }

  .external-login-links ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px !important;
  }

  .right-asside-login {
    display: none;
  }

  .text-like-logo {
    color: #ffeb3b;
    font-weight: 700;
  }

  .login-logo h2 {
    color: #fff;
  }

  .cssp-login {
    height: auto;
    padding: 20px 0px;
  }

  .login-logo {
    margin-top: 0px;
  }

  .login-logo img {
    filter: drop-shadow(3px 4px 12px #fff);
    border-radius: 10px;
    padding: 10px;
    width: 150px;
  }

  .cssp-login::before {
    background-image: none;
  }

  .right-asside-login {
    width: 100%;
  }

  .login-wrapper {
    display: inline-block;
  }

  .external-login-links {
    position: relative;
    bottom: 0;
    left: 10px;
    right: 10px;
    margin-top: 30px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}
