:root {
    --hw-color-primary: #051c33;
    --hw-color-brand-blue: #005ff7;
    --hw-color-brand-blue-hover: #004ed0;
    --hw-color-accent: #ff7d73;
    --hw-color-accent-hover: #f56f66;
    --hw-color-border: #d9d9df;
    --hw-color-text: #4d5565;
    --hw-color-muted: #6a7383;
    --hw-color-soft: #f5f5f7;
    --hw-color-badge-bg: #eaf3ff;
    --hw-color-badge-text: #005ff7;
}

html,
body {
    overflow-x: hidden;
}

body.wm,
body.cp {
    background: #ffffff;
    color: var(--hw-color-text);
}

body.wm #login-wrapper,
body.cp #login-wrapper {
    max-width: none;
    margin: 0;
    padding: clamp(24px, 4vw, 32px) 0 0;
}

body.wm #login-wrapper .wrapper,
body.cp #login-wrapper .wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.wm #notify,
body.cp #notify {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto 24px;
    box-sizing: border-box;
}

body.wm #content-container,
body.cp #content-container {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    box-sizing: border-box;
}

body.wm #login-container,
body.wm #login-sub-container,
body.cp #login-container,
body.cp #login-sub-container {
    width: 100%;
}

body.wm #login-sub-header,
body.cp #login-sub-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 38px;
}

body.wm #login-sub-header .main-logo,
body.cp #login-sub-header .main-logo {
    width: min(192px, 62vw);
    max-width: 75%;
    height: auto;
}

body.wm #login-sub,
body.cp #login-sub {
    width: min(600px, 100%);
    height: auto !important;
    min-height: 0 !important;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(26px, 4vw, 40px) clamp(18px, 4vw, 40px) clamp(34px, 4vw, 42px);
    background: #ffffff;
    border: 1px solid var(--hw-color-border);
    border-radius: 10px;
    box-shadow: none;
    box-sizing: border-box;
    overflow: visible !important;
}

body.wm #forms,
body.wm #login_form,
body.cp #forms,
body.cp #login_form {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    top: auto !important;
    visibility: visible !important;
}

body.wm .input-req-login,
body.cp .input-req-login {
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--hw-color-text) !important;
    line-height: 1.35 !important;
    box-sizing: border-box;
}

body.wm .input-req-login label,
body.cp .input-req-login label,
body.wm #forms label,
body.cp #forms label {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--hw-color-text) !important;
    line-height: 1.35 !important;
}

body.wm .login-password-field-label,
body.cp .login-password-field-label {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}

body.wm .input-field-login,
body.cp .input-field-login {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

body.wm .input-field-login.icon,
body.wm .input-field-login.no-icon,
body.cp .input-field-login.icon,
body.cp .input-field-login.no-icon {
    height: auto !important;
    min-height: 0 !important;
    background: none !important;
    padding: 0 !important;
}

body.wm .username-container,
body.wm .password-container,
body.cp .username-container,
body.cp .password-container {
    border: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    box-sizing: border-box !important;
}

body.wm .input-field-login.icon::before,
body.wm .input-field-login.icon::after,
body.wm .username-container::before,
body.wm .password-container::before,
body.cp .input-field-login.icon::before,
body.cp .input-field-login.icon::after,
body.cp .username-container::before,
body.cp .password-container::before {
    display: none !important;
}

body.wm .input-field-login input.std_textbox,
body.cp .input-field-login input.std_textbox {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 48px;
    padding: 0 14px;
    margin: 0 !important;
    border: 1px solid #d2d7e1;
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 48px;
    color: var(--hw-color-text);
    box-shadow: none;
}

body.wm .input-field-login input.std_textbox::placeholder,
body.cp .input-field-login input.std_textbox::placeholder {
    color: #a5acb7;
}

body.wm .input-field-login input.std_textbox:focus,
body.cp .input-field-login input.std_textbox:focus {
    border-color: #ff9b92;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 125, 115, 0.12);
}

.hwperu-login-hint {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: -4px 0 14px;
    padding: 7px 10px;
    border: 1px solid #d8e2f2;
    border-radius: 6px;
    background: #f8fbff;
    color: #5b6678;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    box-sizing: border-box;
}

.hwperu-login-hint[hidden] {
    display: none !important;
}

.hwperu-login-hint__text {
    color: inherit;
}

.hwperu-login-hint__link,
.hwperu-login-hint__link:link,
.hwperu-login-hint__link:visited,
.hwperu-login-hint__link:active {
    color: var(--hw-color-brand-blue) !important;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hwperu-login-hint__link:hover,
.hwperu-login-hint__link:focus {
    color: var(--hw-color-brand-blue-hover) !important;
    text-decoration: underline;
}

body.wm .controls,
body.cp .controls {
    display: block !important;
    width: 100% !important;
    margin: 4px 0 0 !important;
}

body.wm .login-btn,
body.cp .login-btn {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}

body.wm .login-btn button,
body.wm #login_submit,
body.cp .login-btn button,
body.cp #login_submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 4px;
    background: var(--hw-color-accent);
    color: #ffffff;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
    transition: background-color 160ms ease;
    box-sizing: border-box;
}

body.wm .login-btn button:hover,
body.wm #login_submit:hover,
body.cp .login-btn button:hover,
body.cp #login_submit:hover {
    background: var(--hw-color-accent-hover);
}

body.wm .login-btn button:focus,
body.wm #login_submit:focus,
body.cp .login-btn button:focus,
body.cp #login_submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 125, 115, 0.15);
}

body.wm .copyright,
body.cp .copyright {
    margin-top: 30px;
}

.hwperu-chatwoot-notice {
    display: none !important;
}

.hwperu-support-strip {
    margin: clamp(72px, 9vw, 118px) 0 0;
    padding: clamp(36px, 5vw, 54px) clamp(16px, 4vw, 24px);
    background: var(--hw-color-soft);
    border-top: 1px solid #ececf0;
    border-bottom: 1px solid #ececf0;
    box-sizing: border-box;
}

.hwperu-support-strip__inner {
    width: min(960px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    box-sizing: border-box;
}

.hwperu-support-strip__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hwperu-support-strip__eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--hw-color-badge-bg);
    color: var(--hw-color-badge-text);
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hwperu-support-strip__title {
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--hw-color-primary);
}

.hwperu-support-strip__copy {
    max-width: 470px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--hw-color-muted);
}

.hwperu-support-strip__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.hwperu-support-strip__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    align-self: flex-start;
    justify-self: start;
    min-width: 0;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(0, 95, 247, 0.22);
    border-radius: 6px;
    background: linear-gradient(180deg, #f4f8ff 0%, #e8f0ff 100%);
    color: var(--hw-color-brand-blue);
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
    transition: transform 140ms ease, filter 140ms ease;
    cursor: pointer;
    box-sizing: border-box;
}

.hwperu-support-strip__button:hover {
    background: linear-gradient(180deg, #ebf3ff 0%, #dce9ff 100%);
    filter: none;
    transform: translateY(-1px);
}

.hwperu-support-strip__portal {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: var(--hw-color-muted);
    text-decoration: none;
    line-height: 1.25;
}

.hwperu-support-strip__portal:hover {
    text-decoration: none;
}

.hwperu-support-strip__portal-label {
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--hw-color-primary);
}

.hwperu-support-strip__portal-url {
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--hw-color-brand-blue);
}

.hwperu-support-strip__portal:hover .hwperu-support-strip__portal-url {
    color: var(--hw-color-brand-blue-hover);
    text-decoration: underline;
}

.hwperu-support-strip__button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 95, 247, 0.22);
}

.woot--bubble-holder {
    display: none !important;
}

@media (max-width: 1024px) {
    .hwperu-support-strip__inner {
        width: min(760px, 100%);
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .hwperu-support-strip__button {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    body.wm #login-wrapper,
    body.cp #login-wrapper {
        padding-top: 24px;
    }

    body.wm #content-container,
    body.wm #notify,
    body.cp #content-container,
    body.cp #notify {
        width: min(100% - 20px, 760px);
    }

    body.wm #login-sub,
    body.cp #login-sub {
        border-radius: 8px;
    }

    body.wm .input-req-login,
    body.cp .input-req-login {
        font-size: 16px;
    }

    body.wm .input-field-login input.std_textbox,
    body.cp .input-field-login input.std_textbox {
        height: 46px;
        font-size: 16px;
        line-height: 46px;
    }

    .hwperu-support-strip {
        margin-top: 64px;
        padding: 32px 14px;
    }

    .hwperu-support-strip__inner {
        gap: 20px;
    }

    .hwperu-support-strip__title {
        font-size: 24px;
    }

    .hwperu-support-strip__copy {
        max-width: none;
        font-size: 16px;
    }

    .hwperu-support-strip__button {
        width: auto;
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    body.wm #notify,
    body.wm #content-container,
    body.cp #notify,
    body.cp #content-container {
        width: calc(100% - 16px);
    }

    body.wm #login-sub-header,
    body.cp #login-sub-header {
        margin-bottom: 26px;
    }

    body.wm #login-sub,
    body.cp #login-sub {
        padding: 22px 16px 28px;
    }

    body.wm .input-field-login,
    body.wm .username-container,
    body.wm .password-container,
    body.cp .input-field-login,
    body.cp .username-container,
    body.cp .password-container {
        margin-bottom: 22px !important;
    }

    body.wm .input-field-login input.std_textbox,
    body.cp .input-field-login input.std_textbox {
        height: 44px;
        padding: 0 14px;
        font-size: 15px;
        line-height: 44px;
    }

    body.wm .login-btn button,
    body.wm #login_submit,
    body.cp .login-btn button,
    body.cp #login_submit {
        min-height: 48px;
    }

    .hwperu-support-strip {
        margin-top: 48px;
    }

    .hwperu-support-strip__title {
        font-size: 20px;
    }

    .hwperu-support-strip__copy {
        font-size: 15px;
        line-height: 1.55;
    }

    .hwperu-support-strip__button {
        min-height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }
}
