/* ================================================================
   DHBVN Login Theme — adapted from DHBVNCHS legacy main.css
   Font paths resolve relative to this CSS file's location:
   resources/css/dhbvn.css → ../fonts/...
   ================================================================ */

/* [ FONTS ] */
@font-face {
  font-family: Poppins-Regular;
  src: url('../fonts/poppins/Poppins-Regular.ttf');
}
@font-face {
  font-family: Poppins-Bold;
  src: url('../fonts/poppins/Poppins-Bold.ttf');
}
@font-face {
  font-family: Poppins-Medium;
  src: url('../fonts/poppins/Poppins-Medium.ttf');
}
@font-face {
  font-family: Montserrat-Bold;
  src: url('../fonts/montserrat/Montserrat-Bold.ttf');
}

/* [ FONT AWESOME 4.7 ] */
@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.woff2') format('woff2'),
       url('../fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.woff')  format('woff'),
       url('../fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
}
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.fa-envelope:before { content: "\f0e0"; }
.fa-lock:before     { content: "\f023"; }
.fa-refresh:before  { content: "\f021"; }
.fa-eye:before      { content: "\f06e"; }
.fa-eye-slash:before{ content: "\f070"; }
.fa-check-circle:before { content: "\f058"; }
.fa-2x { font-size: 2em; }

/* [ RESET ] */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Poppins-Regular, sans-serif;
}

a {
  font-family: Poppins-Regular;
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
  margin: 0;
  transition: all 0.4s;
  -webkit-transition: all 0.4s;
}
a:focus  { outline: none !important; }
a:hover  { text-decoration: none; color: #57b846; }

h1, h2, h3, h4, h5, h6 { margin: 0; }

p {
  font-family: Poppins-Regular;
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
  margin: 0;
}

ul, li { margin: 0; list-style-type: none; }

input    { outline: none; border: none; }
textarea { outline: none; border: none; }

textarea:focus, input:focus { border-color: transparent !important; }

input:focus::-webkit-input-placeholder { color: transparent; }
input:focus:-moz-placeholder           { color: transparent; }
input:focus::-moz-placeholder          { color: transparent; }
input:focus:-ms-input-placeholder      { color: transparent; }

input::-webkit-input-placeholder { color: #999999; }
input:-moz-placeholder            { color: #999999; }
input::-moz-placeholder           { color: #999999; }
input:-ms-input-placeholder       { color: #999999; }

/* Override browser autofill highlight so it matches the .input100 gray background */
.input100:-webkit-autofill,
.input100:-webkit-autofill:hover,
.input100:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #e6e6e6 inset;
  -webkit-text-fill-color: #666666;
}

button { outline: none !important; border: none; background: transparent; }
button:hover { cursor: pointer; }
iframe { border: none !important; }

/* [ UTILITY ] */
.txt1 { font-family: Poppins-Regular; font-size: 13px; line-height: 1.5; color: #999999; }
.txt2 { font-family: Poppins-Regular; font-size: 13px; line-height: 1.5; color: #666666; }

/* ================================================================
   FULL-PAGE CONTAINER — gradient background
   ================================================================ */
.limiter {
  width: 100%;
  margin: 0 auto;
}

.container-login100 {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: #9053c7;
  background: -webkit-linear-gradient(-135deg, #c850c0, #4158d0);
  background: linear-gradient(-135deg, #c850c0, #4158d0);
}

/* ================================================================
   WHITE CARD
   ================================================================ */
.wrap-login100 {
  width: 960px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 130px 33px 95px;
}

/* ================================================================
   TITLE BOX — full width header and footer bands
   ================================================================ */
.title-box {
  width: 100%;
  display: block;
}

.login100-page-title {
  font-family: Poppins-Bold;
  font-size: 26px;
  color: #333333;
  line-height: 2;
  text-align: center;
  width: 100%;
  display: block;
  padding-bottom: 20px;
}

.login100-page-footer {
  font-family: Poppins-Bold;
  font-size: 18px;
  color: #333333;
  line-height: 2;
  text-align: center;
  width: 100%;
  display: block;
  padding-bottom: 10px;
}

/* Footer contact bar — wraps icon+number pairs onto multiple lines instead
   of overflowing horizontally on phones/tablets. Each abbr's font-size is
   set inline in the .ftl, so the small-phone media query below uses
   !important to shrink it on very narrow screens. */
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 4px;
}
.footer-contacts img { vertical-align: middle; }

/* ================================================================
   LEFT PANEL — illustration + quick links
   ================================================================ */
.login100-pic {
  width: 316px;
}
.login100-pic img {
  max-width: 100%;
}

/* ================================================================
   RIGHT PANEL — login form
   ================================================================ */
.login100-form {
  width: 290px;
}

.login100-form-title {
  font-family: Poppins-Bold;
  font-size: 22px;
  color: #333333;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  display: block;
  padding-bottom: 54px;
}

.heading-login {
  padding-bottom: 20px !important;
}

/* ================================================================
   INPUTS
   ================================================================ */
.wrap-input100 {
  position: relative;
  width: 100%;
  z-index: 1;
  margin-bottom: 10px;
}

.input100 {
  font-family: Poppins-Medium;
  font-size: 15px;
  line-height: 1.5;
  color: #666666;
  display: block;
  width: 100%;
  background: #e6e6e6;
  height: 50px;
  border-radius: 25px;
  padding: 0 30px 0 68px;
}

/* Focus ring animation */
.focus-input100 {
  display: block;
  position: absolute;
  border-radius: 25px;
  bottom: 0; left: 0;
  z-index: -1;
  width: 100%; height: 100%;
  box-shadow: 0 0 0 0;
  color: #0000FF;
}

.input100:focus + .focus-input100 {
  -webkit-animation: anim-shadow 0.5s ease-in-out forwards;
  animation: anim-shadow 0.5s ease-in-out forwards;
}

@-webkit-keyframes anim-shadow {
  to { box-shadow: 0 0 70px 25px; opacity: 0; }
}
@keyframes anim-shadow {
  to { box-shadow: 0 0 70px 25px; opacity: 0; }
}

.symbol-input100 {
  font-size: 15px;
  display: flex;
  align-items: center;
  position: absolute;
  border-radius: 25px;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  padding-left: 35px;
  pointer-events: none;
  color: #0000FF;
  transition: all 0.4s;
}

.input100:focus + .focus-input100 + .symbol-input100 {
  color: #57b846;
  padding-left: 28px;
}

/* ================================================================
   BUTTON
   ================================================================ */
.container-login100-form-btn {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.login100-form-btn {
  font-family: Montserrat-Bold;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  text-transform: uppercase;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  background: #0000FF;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 25px;
  transition: all 0.4s;
  cursor: pointer;
}

.login100-form-btn:hover {
  background: #333333;
}

/* Override for the main login button gradient (from legacy inline style) */
#btnlogin {
  background-image: linear-gradient(0deg, #2d53da 10%, #0dcaf0 100%) !important;
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-radius: 30px;
  margin: 10px 0 0;
}

/* ================================================================
   CAPTCHA ROW — matches AppSavy's DHBVNCHSLOGIN.cshtml layout exactly:
   image, refresh icon, input all in one row, no wrap. The input is a fixed
   compact width (not the pill-style .input100 100% width) so it sits inline
   next to the icons instead of stretching or collapsing to browser default.
   ================================================================ */
.captcha-row {
  list-style: none;
  padding-left: 0;
  display: inline-flex;
  margin-bottom: 0;
  align-items: center;
}
.captcha-row li + li { padding-left: 10px; }
.captcha-row #txtcaptcha {
  width: 130px;
  flex: none;
  /* The global `input { border: none; }` reset above wins on equal
     specificity with Bootstrap's .form-control border (both apply to the
     element, last one in source order — dhbvn.css after bootstrap.min.css —
     wins for the border-shorthand properties it touches). Restate explicitly
     here so the captcha box renders as a simple bordered/rounded box like
     AppSavy's legacy txtcaptcha, not borderless/square. */
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 4px !important;
  height: 34px;
}

/* ================================================================
   ALERT VALIDATION
   ================================================================ */
.validate-input { position: relative; }

.alert-validate::before {
  content: attr(data-validate);
  position: absolute;
  max-width: 70%;
  background-color: white;
  border: 1px solid #c80000;
  border-radius: 13px;
  padding: 4px 25px 4px 10px;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  pointer-events: none;
  font-family: Poppins-Medium;
  color: #c80000;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}

.alert-validate::after {
  content: "\f06a";
  font-family: FontAwesome;
  display: block;
  position: absolute;
  color: #c80000;
  font-size: 15px;
  top: 50%;
  transform: translateY(-50%);
  right: 13px;
}

.alert-validate:hover:before { visibility: visible; opacity: 1; }

/* ================================================================
   KC ALERT MESSAGES (error / success / warning from KC)
   ================================================================ */
.alert {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.alert-error   { background: #fff0f0; border-left: 3px solid #c80000; color: #c80000; }
.alert-success { background: #f0fff0; border-left: 3px solid #28a745; color: #28a745; }
.alert-warning { background: #fffbf0; border-left: 3px solid #ffc107; color: #856404; }
.alert-info    { background: #f0f8ff; border-left: 3px solid #17a2b8; color: #17a2b8; }

.error-msg { color: #e42525; font-size: 13px; display: block; margin-top: 4px; }

/* ================================================================
   FORGOT PASSWORD LINK
   ================================================================ */
.p-t-12  { padding-top: 12px; }
.p-t-136 { padding-top: 136px; }
.text-center { text-align: center; }

/* ================================================================
   FORGOT / CHANGE PASSWORD SECTION STYLES
   ================================================================ */
.ibox { padding: 10px 0; }
.ibox h2 { font-size: 18px; font-family: Poppins-Bold; color: #333; margin-bottom: 12px; }

.form-group {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}
.form-group label { display: block; margin-bottom: 4px; }

/* select in forgot password */
.form-group select.input100 {
  padding: 0 15px;
  appearance: none;
  -webkit-appearance: none;
}

/* ================================================================
   RADIO BUTTON ROW (hidden in DHBVN — dept login only)
   ================================================================ */
.input-form.radio-row { display: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 992px) {
  .wrap-login100 {
    padding: 40px 60px 33px 60px;
  }
  .login100-pic { width: 100%; padding: 0 8%; text-align: center; }
  .login100-pic .js-tilt img { width: 65% !important; }
  /* .login100-form was a stray 50% here — a single 50%-wide flex item with
     no sibling on its row left a blank gap on the right. Center it with a
     max-width instead, so the inputs don't look stranded. */
  .login100-form { width: 100%; max-width: 380px; margin: 0 auto; }
  .login100-form-title { padding-bottom: 15px; }
}

@media (max-width: 768px) {
  .wrap-login100 {
    padding: 24px 24px 24px 24px;
  }
  .login100-pic { width: 100%; padding: 0 5%; }
  .login100-pic .js-tilt img { width: 70% !important; }
  .login100-form { width: 100%; max-width: 360px; margin: 0 auto; }
  .login100-form-title { padding-bottom: 15px; }
}

@media (max-width: 576px) {
  .wrap-login100 {
    padding: 30px 15px 20px 15px;
  }
  .login100-page-title { font-size: 20px; padding-bottom: 12px; }
}

/* Small phones — tighten the footer contact bar and header title further;
   inline font-size on .footer-contacts abbr needs !important to override. */
@media (max-width: 420px) {
  .login100-page-title { font-size: 17px; }
  .login100-page-footer { font-size: 15px; }
  .footer-contacts abbr { font-size: 10px !important; }
  .footer-contacts img { width: 18px !important; height: auto !important; }
  .input100 { padding-left: 50px; font-size: 14px; }
  .symbol-input100 { padding-left: 20px; }
}
