.hc-login-page .hc-login-title,
.hc-login-modal .hc-login-title {
    margin: 0 0 30px;
    padding: 30px 0 26px;
    position: relative;
    text-align: center;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    color: #0F3266;
}

.hc-login-page .hc-login-title::after,
.hc-login-modal .hc-login-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 40px;
    height: 6px;
    transform: translateX(-50%);
    background: #FFCB05;
}

.hc-login-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 0 90px;
}

.hc-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.hc-login-field {
    position: relative;
}

.hc-login-error {
    padding: 12px 16px;
    border: 1px solid #F5C2C0;
    border-radius: 12px;
    background: #FDECEC;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #B42318;
}

.hc-login-error[hidden] {
    display: none;
}

.hc-login-form.is-loading .hc-login-submit {
    opacity: 0.6;
    cursor: wait;
}

.hc-login-form input[type="text"],
.hc-login-form input[type="password"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #E4E4E7;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #0F3266;
}

.hc-login-form input::placeholder {
    color: #777781;
    opacity: 1;
}

.hc-login-form input:focus {
    outline: none;
    border-color: #133f82;
    box-shadow: 0 0 0 2px rgba(19, 63, 130, 0.15);
}

.hc-login-field--password input {
    padding-right: 52px;
}

.hc-login-form button.hc-login-toggle:not(.button_) {
    background-color: transparent !important;
    box-shadow: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ADADB3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-login-form button.hc-login-toggle:not(.button_):hover,
.hc-login-form button.hc-login-toggle:not(.button_):focus {
    background: transparent !important;
    color: #133f82;
}

.hc-login-toggle__on { display: none; }
.hc-login-toggle.is-visible .hc-login-toggle__on { display: block; }
.hc-login-toggle.is-visible .hc-login-toggle__off { display: none; }

.hc-login-form button.hc-login-submit:not(.button_) {
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background-color: #133F82 !important;
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.hc-login-form button.hc-login-submit:not(.button_):hover {
    background-color: #0F3266 !important;
}

.hc-login-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: transparent;
}

.hc-login-modal[hidden] {
    display: none;
}

.hc-login-modal__box {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 450px;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 30px 35px 60px;
    background: #fff;
}

.hc-login-modal .hc-login-modal__box .hc-login-title {
    margin: 0;
    padding: 0 0 26px;
    text-align: left;
}

.hc-login-modal .hc-login-modal__box .hc-login-title::after {
    left: 0;
    transform: none;
}

.hc-login-modal button.hc-login-modal__close:not(.button_) {
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -8px -8px -8px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    color: #000;
    cursor: pointer;
}

.hc-login-open {
    overflow: hidden;
}

.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

body:has(.hc-login-page) .sub_page_header {
    display: none;
}

body:has(.hc-login-page) #main_content > .content_row.overlap {
    margin-top: 0;
}

body:has(.hc-login-page) #main_content > .content_row > .content_row_wrapper > .col {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 600px) {
    .hc-login-modal {
        display: none !important;
    }

    body:has(.hc-login-page) #main_content > .content_row > .content_row_wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .hc-login-page {
        max-width: none;
        margin: 0;
        padding: 100px 30px 90px;
    }

    .hc-login-page .hc-login-title {
        margin-bottom: 30px;
        padding: 0 0 26px;
    }

    .hc-login-page .hc-login-form {
        padding-bottom: 90px;
    }

    .woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
        max-width: none;
        margin-left: 30px;
        margin-right: 30px;
    }
}
