body {
  font-family: var(--font-family);
}
.authconatiner { 
    background-color: var(--sidebar-bg, #f5f5f5);
}

.auth-card{
   border-radius: 20px;
   max-width: 750px;
}
.authconatiner .title{
    font-size: 24px;
}
.authconatiner .subtitle{
    font-size: 18px;
}
.auth-card.login{
    max-width: 600px;
}
.auth-card .logo-placeholder{
    width: 150px;
    height: 50px;
}
.auth-card .logo-placeholder img{
   width: 100%;
    height: 100%;
    object-fit: contain;
}
.auth-card input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset; /* override background */
    -webkit-text-fill-color: #000;                 /* text color */
    font-size: 18px !important;                               /* fix tiny font */
    font-family: inherit;                          /* inherit from your input */
    transition: background-color 5000s ease-in-out; /* prevent flicker */
}
.auth-card input{
   border: 0.4px solid #00000066;
   height: 72px;
   border-radius: 10px;
   font-size:18px;
}
.auth-card input:focus{
    outline: none;
    box-shadow: none;
    border: 0.4px solid #00000066;
    background-color: transparent;
}
.auth-card .invalid-feedback{
  color: var(--color-inactive);
}
.auth-card .passfield,.auth-card .passfield:focus {
    border-right: none;
}

.auth-card .passwordeye{
    border-left: none;
    display: flex;
    align-items: center;
}
.auth-card .passwordeye:hover{
    background-color: var(--color-white);
}
.auth-card .eyeicon{
    color: var(--color-dark-grey);
}
.auth-card .secondary_btn{
    border: 0.4px solid #00000066;
    border-radius: 10px;
}
.auth-card .secondary_btn:hover{
    background: var(--color-white);
}
.auth-card .primary_btn{
    background-color: var(--sidebar-bg);
    border-radius: 10px;
    border: 0.4px solid #00000066;
}
.auth-card .form-check-input {
    width: 30px;
    height: 33px;
    padding: 0;
    border: 0.6px solid #00000099;
    margin: 0 8px 0 0;
    border-radius: 2px;

    /* Fix for accent color */
    accent-color: var(--sidebar-bg) !important;

    /* Ensure browser respects accent-color */
    -webkit-appearance: checkbox;
    appearance: checkbox;

    background-color: unset;
}
.auth-card .forget_pass{
    color: var(--sidebar-bg);
}
.auth-card .help_text{
    color:#000000B2;
    font-size: 18px;
}
.auth-card .help_text a{
    color: #000000B2;
}
.auth-card .alert-success {
    background-color: color-mix(in srgb, var(--sidebar-bg) 10%, white);
    border-color: color-mix(in srgb, var(--sidebar-bg) 30%, white);
    color: var(--sidebar-bg);
    border-radius: 10px;
}
/* ── Responsive auth form ── */

/* Shrink inputs on small screens */
@media (max-width: 575.98px) {

  .auth-card input {
    height: 54px;
    font-size: 16px;
  }
  .authconatiner .subtitle {
    font-size: 16px;
 }

  .auth-card .fs_18 {
    font-size: 16px !important;
  }

  .authconatiner .title {
    font-size: 20px;
  }

  /* Stack buttons full-width on mobile */
  .auth-card .btn-row {
    flex-direction: column-reverse;
    gap: 12px !important;
  }

  .auth-card .secondary_btn,
  .auth-card .primary_btn {
    width: 100%;
    text-align: center;
  }
  .auth-card .help_text{
     font-size: 14px;
    }
}

/* Slightly reduced on tablet */
@media (min-width: 576px) and (max-width: 767.98px) {
  .auth-card input {
    height: 60px;
    font-size: 16px;
  }
  .auth-card .help_text{
    font-size: 16px;
  }
}

/* Card padding tightens on small screens */
@media (max-width: 575.98px) {
  .auth-card {
    border-radius: 14px;
    padding: 1.25rem !important;
  }
}

/* Password eye button height matches input */
.auth-card .input-group .passwordeye {
  height: inherit;
  border: 0.4px solid #00000066;
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.auth-card .passfield {
  border-radius: 10px 0 0 10px;
}

/* Autofill fix carries over to smaller font sizes */
@media (max-width: 575.98px) {
  .auth-card input:-webkit-autofill {
    font-size: 16px !important;
  }
}

/* Remember Me + Forgot Password row wraps on very small screens */
@media (max-width: 400px) {
  .auth-card .form-check-label,
  .auth-card .forget_pass {
    font-size: 14px !important;
  }

  .auth-card .form-check-input {
    width: 20px;
    height: 20px;
  }
  .authconatiner .subtitle {
    font-size: 15px;
  }
}
@media (max-width: 350px) {
    .auth-card .form-check-label, .auth-card .forget_pass {
        font-size: 13px !important;
    }
}
