body {
    margin: 0;
}

.body_bg_wrapper {
    background-image: url('../images/body-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px)
    }
}

.login-card {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    position: relative;
    padding: 30px 20px 85px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn svg {
    width: 10px;
    height: 10px;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo-svg {
    width: 240px;
    height: 31.42px;
}

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

.welcome-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    color: black;
    margin-bottom: 10px;
}

.welcome-title strong {
    font-weight: 700;
}

.header-subtitle {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 24px;
}

.form-content {
    max-width: 400px;
    margin: 0 auto;
}

.err_msg {
    border: 1px solid #f3c2c2;
    background: #fff3f3;
    color: #8a1f1f;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 14px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.input-group-custom {
    margin-bottom: 15px;
}

.form-control-custom {
    background: white;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2a2a2a;
    height: auto;
}

.form-control-custom::placeholder {
    color: #2a2a2a;
}

.form-control-custom:focus {
    border-color: #afd181;
    box-shadow: 0 0 0 0.2rem rgba(175, 209, 129, 0.25);
}

.password-field {
    position: relative;
}

.password-field .password-toggle.eye-close {
    background-image: url('../images/eye-close.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background-image 0.3s ease;
    outline: none;
}

.password-field .password-toggle.eye-open {
    background-image: url('../images/eye.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background-image 0.3s ease;
}
.password-toggle {
    position: absolute;
    right: 19px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
}

.forgot-password {
    text-align: right;
    margin-top: 20px;
    margin-bottom: 35px;
}

.forgot-password a {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ba692f;
    text-decoration: underline;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.btn-login {
    background: #afd181;
    border: none;
    border-radius: 9999px;
    padding: 14px 20px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: black;
    text-transform: capitalize;
    height: 50px;
}

.btn-login:hover {
    background: #9ec070;
}

.loginfooter {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px;
    border-top: 1px solid #e9e9e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
}

.loginfooter .footer-copyright {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #777;
    margin: 0;
    flex: 1;
}

.loginfooter .footer-email {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: black;
    margin: 0;
    flex: 1;
    text-align: right;
}

.loginfooter .footer-email a,
.loginfooter .footer-email a:visited,
.loginfooter .footer-email a:hover,
.loginfooter .footer-email a:active,
.loginfooter .footer-email a:focus {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 576px) {
    .login-card {
        padding: 20px 20px 70px;
    }

    .form-content {
        max-width: 100%;
    }

}
@media (max-width: 479px) {
    .login-card {
        padding: 20px 20px 105px;
    }
    .loginfooter {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .loginfooter .footer-email {
        text-align: left;
    }

}