/* ==========================================================================
   Login Page Styles – Kodchasan Font + Full-Screen Centered PIN Login
   ========================================================================== */

/* ---- Import Google Font ---- */
@import url('https://fonts.googleapis.com/css2?family=Kodchasan:wght@200;300;400;500;600;700&display=swap');

/* ---- Reset & Full-Screen Centering ---- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: unset;
}



body {
  font-family: 'Kodchasan', sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Container ---- */
.login-container {
  max-width: 400px;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}
.otp-container {
  max-width: 380px;
}


#login-form, #otp-form {
    height: 100%;
    display: block;
    width: 100%;
}



/* ---- Form Labels ---- */
.form-label {
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: .5rem;
  display: block;
}

/* ---- Input Fields (Bootstrap-like .form-control) ---- */
.form-control {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control::placeholder {
  font-size: .75rem;
  color: #9ca3af;
  opacity: 1;
}
.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #3b82f6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
}

/* ---- PIN / OTP Input Blocks ---- */
.pin-input,
.otp-input {
  width: 40px !important;
  height: 40px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  border-radius: 12px !important;
  border: 1px solid #ced4da;
  transition: all .15s ease-in-out;
}
.pin-input:focus,
.otp-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
}

/* ---- Submit Button (Circular) ---- */
.btn-submit {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3b82f6;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, .3);
  transition: all .2s ease;
  cursor: pointer;
  margin: 1.5rem auto 0;
}
.btn-submit:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, .4);
}
.btn-submit:active {
  transform: translateY(0);
}

/* ---- Error Messages (Prevent Layout Shift) ---- */
.text-danger {
  min-height: 1.25rem;
  display: block;
 
}

/* ---- Alert Styling ---- */
.alert {
  transition: opacity .5s ease-in;
  background: transparent;
  border: none;
  color: #dd4e57;
  font-size: .875em;
}
.alert > .close { display: none; }


.alert-danger {
text-align: center;
 

}

/* ---- Validation overrides ---- */
.form-control.is-invalid,
.was-validated .form-control:invalid {
  padding-right: unset;
  background-image: unset;
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 480px) {
  .login-container { padding: 1rem; }

  .pin-input,
  .otp-input {
    width: 36px !important;
    height: 36px;
    font-size: 1.1rem;
  }

  .btn-submit {
    width: 56px;
    height: 56px;
  }
}

/* ---- Medium-screen tweaks (optional) ---- */
@media (max-width: 1366px) {
  .form-control.is-invalid,
  .was-validated .form-control:invalid {
    padding-right: unset;
    background-image: unset;
  }
}