:root {
  --gov-navy: #0a3161;
  --gov-saffron: #ff9933;
}

html, body {
  height: 100%;
}
@font-face {
    font-family: 'bootstrap-icons';
    src: url('./fonts/bootstrap-icons.woff2') format('woff2'),
        url('./fonts/bootstrap-icons.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #1a1a1a;
  background: linear-gradient(135deg, rgba(54, 56, 59, 0.67), rgba(0, 0, 0, 0.42)), 
            url("../images/branding/lca-bg.jpeg") center / cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.8;
  background: #214aab;
}

.login-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 0;
}

.login-emblem-pane {
  background: #abc6e3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
}

.login-emblem-pane .hindi {
  font-family: 'Mangal','Nirmala UI','Noto Sans Devanagari',sans-serif;
  color: #555;
  font-size: .82rem;
  letter-spacing: .5px;
  margin-bottom: 14px;
}

.login-emblem-pane .gov-line {
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.login-emblem-pane .title-band {
  font-weight: 800;
  font-size: 1.3rem;
  margin-top: 3px;
  letter-spacing: .3px;
  white-space: nowrap;
}

.login-form-pane {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-pane .field {
  position: relative;
  margin-bottom: 15px;
}

.login-form-pane .field label {
  display: block;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.login-form-pane .field label .req {
  color: #0434a5;
  margin-left: 2px;
}

.login-form-pane .field input {
  width: 100%;
  background: transparent;
  color: #000;
  padding: 5px 16px;
  height: 40px;
  font-size: 16px;
  border-radius: 0;
  border: 1px solid #214aab;
}

.login-form-pane .field input::placeholder {
  color: rgba(255,255,255,.55);
}

.login-form-pane .field input:-webkit-autofill {
  -webkit-text-fill-color: #000;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
}

.login-form-pane .field .field-icon {
  position: absolute;
  right: 5px;
  bottom: 4px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  padding: 2px 4px;
}

.login-form-pane .captcha-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}

.login-form-pane .captcha-img {
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  width: 188px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.login-form-pane .captcha-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
   image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.login-form-pane .captcha-refresh {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  padding-bottom: 12px;
  line-height: 1;
}

.login-form-pane .captcha-refresh:hover {
  color: #ffc107;
}

.login-form-pane .btn-login {
  background: #178610;
  color: #fff;
  border-radius: 50px;
  border: 1px solid #178610;
  box-shadow: -1px 4px 2px gray;
  padding: 5px 20px;
  margin-bottom: 10px;
  transition: 0.3s all ease-in-out;
  font-weight: 600;
  letter-spacing: 0.80px;
  display: block;
  margin: 0 auto;
}

.login-form-pane .btn-login:hover {
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.login-form-pane .small-link {
  color: #000;
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}

.login-form-pane .small-link:hover {
  text-decoration: underline;
}

.login-form-pane .links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.auth-card.login-wide {
  max-width: 830px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.field i {
  color: #214aab;
}

.auth-card {
  width: 100%;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.auth-card.wide {
  max-width: 720px;
}

.auth-card.compact {
  max-width: 520px;
}

.auth-head {
  background: linear-gradient(178deg, #3931af, #38acced1);
  color: #fff;
  padding: 26px 28px 22px;
  text-align: center;
}

.auth-head .emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  margin-bottom: 12px;
}

.auth-head h4 {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
}

.auth-head small {
  display: block;
  opacity: 0.85;
  margin-top: 6px;
  font-size: 0.85rem;
}

.auth-body {
  padding: 28px;
}

.captcha-img {
  background: #f4f7fa;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 6px;
  padding: 8px 18px;
  user-select: none;
  color: #1a2b4a;
  background-image: linear-gradient(45deg, #f0f4f8 25%, transparent 25%, transparent 75%, #f0f4f8 75%),
                linear-gradient(45deg, #f0f4f8 25%, transparent 25%, transparent 75%, #f0f4f8 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}

.captcha-img span {
  display: inline-block;
  padding: 0 2px;
}

.captcha-img span:nth-child(odd) {
  color: #0a3161;
  transform: rotate(-7deg);
}

.captcha-img span:nth-child(even) {
  color: #c00000;
  transform: rotate(5deg);
}

.otp-box {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 12px;
  padding: 14px 0;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  max-width: 360px;
  margin: 0 auto;
}

.otp-box:focus {
  border-color: var(--gov-navy);
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(10, 49, 97, .15);
}

.auth-foot {
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  margin-top: 18px;
  z-index: 1;
  position: relative;
}

.auth-foot a {
  color: #ffd366;
  text-decoration: none;
  font-weight: 600;
}

.auth-foot a:hover {
  color: #fff;
  text-decoration: underline;
}

.login-shell.registration {
  display: flex;
}

.auth-card.wide2 {
  max-width: 1300px;
  border-radius: 18px;
  background-color: transparent;
}

.auth-body.reg-form {
  border-radius: 4px !important;
}

.banner_reg {
  background: #abc6e3;
  min-width: 349px;
}

.banner_reg .logo {
  width: 100%;
  padding: 36px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.banner_reg .logo img {
  height: 82px;
  width: auto;
}

.banner_reg .logo h6 {
  line-height: 18px;
  font-size: 16px;
  color: #000;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.banner_reg .logo h3 {
  font-size: 16px;
  color: #000;
  font-weight: 700;
  margin-bottom: 0;
}

.login_img2 img {
  width: 100%;
}

.regis_head {
  margin-bottom: 20px;
}

.regis_head h4 {
  color: #214aab;
  font-weight: bold;
  font-size: 20px;
}

.auth-body.reg-form input {
  height: 40px;
  font-size: 16px;
  padding: 5px 16px;
  border-radius: 0;
  border: 1px solid #214aab;
}

.btn-reg {
  background: #178610;
  color: #fff;
  border-radius: 50px;
  border: 1px solid #178610;
  box-shadow: -1px 4px 2px gray;
  padding: 5px 20px;
  margin-bottom: 10px;
  transition: 0.3s all ease-in-out;
  font-weight: 600;
  letter-spacing: 0.80px;
}

.reg_links {
  display: flex;
  justify-content: space-between;
}

.reg_links a {
  text-decoration: none;
  color: rgb(33 74 171);
  font-weight: 600;
}

.custom-prefix-select {
  max-width: 100px;
  background-color: #f8f9fa;
  border-right: none;
  color: #0a3161;
  font-weight: 500;
  border: 1px solid #9e9e9e;
  border-radius: 0;
}

.custom-prefix-select size, 
        .custom-prefix-select:focus {
  max-height: 200px;
  overflow-y: auto;
}

.input-group:focus-within .custom-prefix-select,
        .input-group:focus-within .form-control {
  border-color: #0a3161;
  box-shadow: 0 0 0 0.2rem rgba(10, 49, 97, 0.15);
}

.btn-reg:hover {
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-reg:hover::before {
  opacity: 1;
}

.verified-icon {
  color: green;
  position: absolute;
  right: 20px !important;
  top: 50%;
  transform: translateY(-50%);
  font-size: 25px;
  transition: color 0.3s;
}

.registration .auth-foot {
  color: #214aab;
}

.banner_reg .logo:focus-visible {
  outline: none;
}

.input-group i {
  color: #214aab;
}

.login-shell.registration.addClass .login-emblem-pane {
  display: flex !important;
}

.addClass .login-emblem-pane {
  background: #abc6e3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
}

.addClass .login-emblem-pane .emblem-img {
  width: 120px;
  margin-bottom: 14px;
}

.addClass .login-emblem-pane .gov-line {
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.addClass .login-emblem-pane .title-band {
  font-weight: 800;
  font-size: 1.3rem;
  margin-top: 3px;
  letter-spacing: .3px;
  white-space: nowrap;
}
.login-emblem-pane .emblem-img {
    width: 120px;
    margin-bottom: 14px;
    background: url('../images/branding/logo.png') center / contain no-repeat;
}
 
/*otp-page*/
    .otp-digits {
        display: flex; justify-content: center; gap: 10px;
        margin: 18px 0 8px;
    }
    .otp-digits input {
        width: 52px; height: 52px;
        text-align: center;
        font-size: 1.6rem; font-weight: 700;
        border: 1px solid #6e6e6e;
        border-radius: 8px;
        background: #fff;
        outline: none;
        transition: border-color .12s, box-shadow .12s;
    }
    .otp-digits input:focus {
        border-color: #0a3161;
        box-shadow: 0 0 0 3px rgba(10, 49, 97, .18);
    }
    .otp-key-emblem {
        width: 64px; height: 64px;
        margin: 0 auto 8px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #e7e9ee;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.7rem;
        color: #d4a017;
    }


    .auth-body .field{
        position:relative;
    }
     .auth-body .field .field-icon{
        position: absolute;
        right: 8px;
        bottom: 30px;
        background: transparent;
        border: 0;
        color: rgba(255, 255, 255, .8);
        cursor: pointer;
        padding: 2px 4px;
     }
      .auth-body .field.confirm_field .field-icon{
            bottom: 7px;
      }
      .auth-body .small-link{
        color: #000;
        font-weight: 500;
        font-size: .9rem;
        text-decoration: none;
        white-space: nowrap;
      }

      .create-pwd .form-label{
    margin-bottom: 2px;
}

.create-pwd .btn-primary{
    border-color: #0a3161;
    background: #178610;
    color: #fff;
    border-radius: 50px;
    border: 1px solid #178610;
    box-shadow: -1px 4px 2px gray;
    padding: 5px 20px;
    margin-bottom: 10px;
    transition: 0.3s all ease-in-out;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.80px;
    display: inline-block;
    margin: 0 auto;
    width: auto !important;
}

/*forgot*/

    #forgotForm .small-link:hover { text-decoration: underline; }
  

    .forget-pwd .auth-body{
        padding:0;
    }
    .back-login a{
        color: #000 !important;
        font-weight: 500;
        font-size: .9rem;
        text-decoration: none;
        white-space: nowrap;
    }
    #forgotForm input{    width: 100%;
        background: transparent;
        color: #000;
        padding: 6px 28px 6px 5px;
        height: 40px;
        font-size: 16px;
        padding: 5px 16px;
        border-radius: 0;
        border: 1px solid #214aab;
    }
    #forgotForm .otp-btn{
        background: #0a3161;
        border-color: #0a3161;
        border-radius: 50px;
        border: 1px solid #0a3161;
        box-shadow: -1px 4px 2px gray;
        padding: 5px 20px;
        transition: 0.3s all ease-in-out;
    }
    #forgotForm .otp-btn:hover {
        color: #fff;
        border-color: #fff;
        transform: translateY(-2px);
    }

@media (max-width: 820px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }
  
  .login-emblem-pane {
    min-height: 0;
    padding: 50px 24px;
  }
  
  .login-emblem-pane .emblem-img {
    width: 88px;
    height: 114px;
  }
  
  .login-form-pane {
    padding: 30px 24px;
    display: flex;
    align-items: center;
  }
}
