body {
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-image: url("logbg.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: top center;
    background-color: #f3f3f9;
    font-size: 0.8125rem;
}



.header {
    text-align: center;
    margin-bottom: 20px;
}

.header img {
    margin-top: 100px;
    width:
        60px;
    height: 70px;
    /* Adjust size as needed */
}

.header h5 {
    margin-bottom: 0;
    font-size: 18px;
    color: #405189;
    font-weight: 400;
}

.container {
    max-width: 400px;
    /* Maximum width of the card */
    width: 90%;

    /* Allow card to shrink on smaller screens */
    height: auto;
    /* Change height to auto */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    text-align: center;
    /* Center the text inside the card */
}

.form-group {
    min-width: 100px;
    margin-bottom: 15px;
    text-align: left;
}

.form-remember {
    margin-bottom: 15px;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
}

.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
}

.form-group input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: .5rem .9rem;
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.5;
    background-color: transparent;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.3s ease, border-width 0.3s ease;
    /* Smooth transition for focus */
}

/* Focused state with thin border */
.form-group input:focus {
    outline: none;
    /* Remove default focus outline */
    border-width: 1px;
    /* Thin border on focus */
    border-color: lightgray;
    /* Light gray border on focus */
}

/* Autofill styles for Chrome, Firefox, Safari */
input:-webkit-autofill {
    background-color: transparent !important;
    /* Ensures background is transparent in Chrome */
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    /* Removes autofill background */
    box-shadow: 0 0 0 1000px transparent inset !important;
    /* Removes autofill background for non-webkit browsers */
    -webkit-text-fill-color: #000 !important;
    /* Ensures text color stays black */
}

input:-moz-autofill {
    background-color: transparent !important;
    /* Removes background color in Firefox */
    -moz-box-shadow: 0 0 0 1000px transparent inset !important;
}

input:-ms-autofill {
    background-color: transparent !important;
    /* For Internet Explorer and Edge */
    box-shadow: 0 0 0 1000px transparent inset !important;
    -ms-text-fill-color: #000 !important;
}

/* Transition to apply smoothly */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 5000s ease-in-out 0s;
    /* Delays the autofill background color */
}

.form-group input[type="submit"] {
    width: 100% !important;
    background-color: #0ab39c;
    color: white;
    border: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
}

.form-group input[type="submit"]:hover {
    background-color: #099885;
}

.username-row,
.password-row {
    display: flex;
    justify-content: space-between;
    /* Space between label and input/link */
    align-items: center;
    font-weight: 500;
}

.forgot-password {
    font-size: 0.8125rem;
    color: #878a99;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: none;
}

.password-input {
    position: relative;
    /* Ensure the toggle button is positioned correctly */
    margin-top: 10px;
    /* Space between the password row and input field */
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    top: 70%;
    /* Center vertically */
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-style: normal;
    color: #878a99;
}

.toggle-visibility:hover {
    text-decoration: none;
}

/* Error message style */
.error-message {
    color: red;
    font-size: 14px;
    margin: 10px 0;
}

.container p {
    margin-top: 7px;
    margin-bottom: 1.7rem;
    font-family: "Poppins", sans-serif !important;
    font-size: 13px;
    color: #878a99;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #fff;
}

footer p {
    font-size: 0.8125rem;
    color: #878a99;
    margin: 0;
}

#validation-message {
    color: red;
    font-size: 12px;
    padding: 3px;
    margin-top: 5px;
    /* Space above */
    margin-bottom: 5px;
    /* Space below */
}

@media screen and (max-width: 1600px) {
    .container-logout {
        min-width: 400px;
        padding: 10px;
        margin-bottom: 200px;
    }
}

@media screen and (max-width: 1550px) {
    .container {
        margin-bottom: 80px;
    }
}

@media screen and (max-width: 1400px) {
    .container {
        margin-bottom: 200px;
    }
}


/* Responsive Design */
@media screen and (max-width: 600px) {
    .form-group {
        width: 300px;
    }

    .form-group input {
        width: 100%;
        /* Ensures the input fields fill the entire form-group width */
    }

    .container {
        width: 300px;
        padding: 10px;
        margin-bottom: 150px;
        max-width: 400px;

    }

    .header img {
        max-width: 50px;
    }

    .header h5 {
        font-size: 15px;
    }

    /* Logout  */
    .container-logout {
        min-width: 300px !important;
        padding: 10px;
        margin-bottom: 250px;
    }

    .container-logout img {
        width: 120px;
        height: 120px;
    }

    .container-logout h4 {
        font-size: 1rem;
    }

    .container-logout p {
        font-size: 0.9rem;
    }

    .container-logout button {
        font-size: 0.9rem;
        padding: 6px 16px;
    }

    /* otp */
    .otp-input {
        width: 60px !important;
        height: 35px !important;
        font-size: 15px;
    }
}


/* Logout */
.container-logout {
    min-width: 420px;
    width: 98%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    text-align: center;
    box-sizing: border-box;
}

.container-logout img {
    width: 180px;
    height: 180px;
}

.container-logout p {
    margin-bottom: 20px;
    color: #878a99;
    font-size: 0.9rem;
}

.container-logout button {
    width: 100% !important;
    background-color: #0ab39c;
    color: white;
    padding: 9px 20px;
    border: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    border-radius: 4px;
}

.container-logout button:hover {
    background-color: #099885;
}

.container-logout h4 {
    margin: 10px 0;
    color: #405189;
    font-size: 1.015625rem;
}

/* OTP Page */
.otp-input-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.otp-input {
    width: 80px;
    height: 50px;
    font-size: 20px;
    color: #405189;
    text-align: center;
    border-radius: 5px;
    border: 0px solid #ccc;
    outline: none;
    background-color: #eef2f8;
    font-family: "poppins", sans-serif;
}

.otp-input:focus {
    border-color: #007BFF;
}

.resend-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #007BFF;
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}

.container img {
    max-width: 50px;
    margin-bottom: 5px;
    margin-top: 5px;
}

.container h4 {
    opacity: 1;
    color: #405189;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    margin-top: 0;
}