.login {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: 100%;
}

.section_container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login_header {
    height: 56px;
    background: #fff;
    padding-left: 128px;
    display: flex;
    align-items: center;
    width: 100%;
}

.login_card_container {
    display: flex;
    align-self: flex-start;
    background: transparent;
    margin: 150px auto 0;
}

.login_card_container .base-input {
    width: 300px;
}

.half_height {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.login_card_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.login_card_header {
    padding-top: 30px;
}

.login_card_header > h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #1e244d;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.login_card_header img {
    display: block;
    max-width: 280px;
    width: 100%;
    margin: 10px 0 40px;
    padding: 0 10px;
}

.social_login_button {
    display: flex;
    align-items: center;
    width: 381px;
    height: 65px;
    font-size: 22px;
    color: #9f9f9f;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 127px;
    padding-left: 28px;
}

.social_login_button > span {
    margin-left: 16px;
}

.social_login_button + .social_login_button {
    margin-top: 12px;
}

.section_divider_container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 24px 0;
}

.section_divider_container > span:first-of-type {
    position: absolute;
    width: 100%;
    margin: 30px 0;
    background: #e5e5e5;
    height: 1px;
}

.section_divider_container > span:last-of-type {
    background: #fff;
    font-size: 22px;
    color: #9f9f9f;
    z-index: 1;
    min-width: 381px;
    text-align: center;
}

.form_section {
    flex: 1;
    margin-bottom: 50px;
}

.login_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.input_container {
    position: relative;
    display: flex;
}

.input_container + .input_container {
    position: relative;
    margin-top: 12px;
}

.login_form .login_input {
    height: 65px;
    width: 381px;
    padding: 0 46px;
    background: #f5f5f5;
    border: none;
    border-radius: 127px;
    font-size: 18px;
    color: #32415a;
}

/* Modifies chrome autofill background color */
.login_input:-webkit-autofill,
.login_input:-webkit-autofill:focus {
    box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
    -webkit-box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
}

.login_input::placeholder {
    color: transparent;
}

.floating_label {
    position: absolute;
    top: 19px;
    font-size: 18px;
    color: #9f9f9f;
    font-weight: 400;
    padding-left: 46px;
    transition: 0.2s ease all;
    margin-bottom: 0;
    pointer-events: none;
}

.login_input:focus ~ .floating_label,
.login_input:not(:placeholder-shown) ~ .floating_label {
    top: 3px;
    font-size: 15px;
}

.input_error {
    left: 27px;
    position: absolute;
    color: #e94f4f;
    bottom: 2px;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 14px;
}

.input_error span {
    display: flex;
    align-items: center;
}

.input_error img {
    margin-right: 4px;
}

.signin_button {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.23px;
    height: 50px;
    padding: 0 36px;
    color: #fff;
    background: var(--brand);
    border-radius: 129px;
    border: none;
    box-shadow: 0px 10px 10px #0000001f;
    text-transform: uppercase;
    margin: 26px 0;
}

.signin_button:hover {
    background-color: var(--red);
}

.login_link {
    color: #4c8cee;
    margin-bottom: 20px;
}

.login_link:hover,
.login_link:focus,
.login_link:active {
    color: #4c8cee;
}

.forgot_password {
    margin-bottom: 20px;
}

.new_to_text {
    text-align: center;
    display: block;
    color: #9f9f9f;
}

#reset-password-modal .modal-dialog {
    max-width: 1182px;
}

#reset-password-modal .modal-content {
    height: 400px;
}

#reset-password-modal .modal-body {
    align-items: center;
    justify-content: center;
}

#reset-password-modal .af_primary_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-transform: capitalize;
    border-radius: 30px;
    height: 60px;
    padding: 0 32px;
    margin: 0 auto;
}

#reset-password-modal .reset_password_text {
    font-size: 22px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 50px;
}

#reset-password-modal .reset_password_text > .blue_ghost_btn {
    font-size: 22px;
}

@media screen and (max-width: 800px) {
    .login_card_container {
        margin: 100px auto 0;
    }

    .login_header {
        padding-left: initial;
        justify-content: space-around;
        flex-shrink: 0;
        height: 64px;
    }

    .login {
        justify-content: initial;
        height: 100%;
        flex-direction: column;
        flex-wrap: initial;
    }

    .login_img {
        display: none;
    }

    .login_card_header {
        margin-bottom: 0;
    }

    .login_form {
        height: initial;
        flex: 1;
        padding: 0 20px;
        width: 100%;
    }

    .login_form .login_input {
        width: 100%;
        height: 56px;
        padding: 0 30px;
    }

    .floating_label {
        top: 15px;
        padding-left: 30px;
    }

    .login_input:focus ~ .floating_label,
    .login_input:not(:placeholder-shown) ~ .floating_label {
        top: 1px;
    }

    .input_container {
        width: 100%;
    }

    .login_card_header > h1 {
        font-weight: 900;
        font-size: 24px;
        letter-spacing: -0.02px;
    }

    .input_error {
        bottom: -26px;
    }

    #reset-password-modal .modal-content {
        height: initial;
    }

    #reset-password-modal .reset_password_text {
        display: inline-block;
        font-size: 18px;
    }

    #reset-password-modal .reset_password_text > .blue_ghost_btn {
        display: inline-block;
        font-size: 18px;
    }

    #reset-password-modal .af_primary_btn {
        min-width: 140px;
        height: 50px;
        margin-bottom: 40px;
    }
}
