#login_form {
    width: 80%;
    max-width: 1024px;
    height: 80%;
    max-height: 512px;
    border-radius: 1rem;
    display: flex;
    overflow: hidden;
    background: white;
    box-shadow: 0px 0px 8px 0px rgba(0, 93, 80, 0.8);
}

.pic {
    background: url(../../Image/login_form_bg.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.5rem;
    flex: 1;
}

.source {
    flex: 1;
}

h1>* {
    color: white;
    display: block;
    /* font-size: 2rem; */
}

form {
    width: 90%;
    max-width: 320px;
    height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
}

h2 {
    color: var(--primary-dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

#redirect_link a {
    --link-color: var(--primary-dark-color);
    font-weight: 600;
}

#submit_btn {
    width: 100%;
}

@media (max-width: 900px) {
    #login_form {
        flex-direction: column;
        height: max-content;
    }

    h2 {
        margin-bottom: 0;
    }

    .pic {
        flex: unset;
    }

    form {
        height: 90%;
    }
}

@media (max-width: 320px) {
    .pic {
        flex-direction: column;
        text-align: center;
    }
}

#redirect_link {
    display: flex;
    align-items: center;
    justify-content: center;
}

#redirect_link:has(span:not(:only-child)) {
    justify-content: space-between;
}

#redirect_link a {
    vertical-align: bottom;
}

#login_error {
    color: var(--error-color);
    font-weight: 600;
}

#login_error::before {
    content: "\f071";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    font-size: smaller;
    margin-right: 0.5rem;
    vertical-align: text-bottom;
}

*:has(>.toggle_pswd) {
    position: relative;
}

.toggle_pswd {
    position: absolute;
    background: white;
    right: 2px;
    bottom: 2px;
    color: gray;
}