body.login {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: #ffffff !important;
    color: #051c33;
    font-family: Montserrat, "Segoe UI", sans-serif;
}

/* Keep both renderers as visual layers so the canvas cannot resize its parent. */
.hwp-auth-layout .login-sidebar-visual > .hwp-particle-globe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.hwp-auth-layout .hwp-particle-globe > canvas {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hwp-auth-layout .login-sidebar-visual__caption {
    z-index: 4;
}

/* Static visual: keep the office image and use only a light brand gradient. */
.hwp-auth-layout .hwp-particle-globe {
    display: none !important;
}

.hwp-auth-layout .login-sidebar-visual__fallback {
    opacity: 1 !important;
    background-image:
        linear-gradient(180deg, rgba(5, 28, 51, 0.06) 0%, rgba(5, 28, 51, 0.16) 58%, rgba(5, 28, 51, 0.5) 100%),
        url("../img/login-office-gemini.png") !important;
}

.hwp-auth-layout .login-sidebar-visual::before {
    background:
        radial-gradient(circle at 66% 44%, rgba(0, 95, 247, 0.08), transparent 42%),
        linear-gradient(180deg, transparent, rgba(5, 28, 51, 0.12)) !important;
}

/* Use the host as the only Google button border. */
.hwp-auth-layout #btnGoogleSignin1 {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #d7e0e8 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.hwp-auth-layout #btnGoogleSignin1 > div,
.hwp-auth-layout #btnGoogleSignin1 .S9gUrf-YoZ4jf,
.hwp-auth-layout #btnGoogleSignin1 .nsm7Bb-HzV7m-LgbsSe {
    width: 100% !important;
    max-width: none !important;
}

.hwp-auth-layout #btnGoogleSignin1 .nsm7Bb-HzV7m-LgbsSe {
    height: 44px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Center the email divider between two equal rules. */
.hwp-auth-layout .social-or-login {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.hwp-auth-layout .social-or-login::before,
.hwp-auth-layout .social-or-login::after {
    content: "";
    display: block;
    position: static !important;
    inset: auto !important;
    flex: 1 1 0;
    width: auto !important;
    height: 1px;
    background: #d7e0e8;
}

/* Keep the password reveal control inside the field. */
.hwp-auth-layout .hwp-login-form .input-group-merge {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.hwp-auth-layout #inputPassword {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    padding-right: 46px !important;
    border: 1px solid #d7e0e8 !important;
    border-radius: 7px !important;
}

.hwp-auth-layout #inputPassword + .input-group-append {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 44px;
    height: auto;
    margin: 0;
}

.hwp-auth-layout #inputPassword + .input-group-append .btn-reveal-pw {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    padding: 0;
    border: 0 !important;
    border-radius: 0 7px 7px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1;
}

.hwp-auth-layout #inputPassword + .input-group-append .btn-reveal-pw i {
    line-height: 1;
}

/* Separate registration from news without a boxed gray footer. */
.hwp-auth-layout .login-container-register {
    width: 100%;
    min-height: 0;
    margin: 28px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hwp-auth-layout .login-news-widget {
    margin-top: 26px !important;
}

.hwp-auth-layout,
.hwp-auth-layout * {
    box-sizing: border-box;
}

.hwp-auth-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #ffffff;
    box-shadow: none;
}

.hwp-auth-layout .sidebar-container,
.hwp-auth-layout .center-container {
    display: flex;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hwp-auth-layout .sidebar-container {
    flex: 0 0 52%;
    width: 52%;
    max-width: 52%;
    padding: 0 !important;
    overflow: hidden;
    background: #051c33 !important;
}

.hwp-auth-layout .sidebar-content {
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

.login-sidebar-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: #051c33;
}

.login-sidebar-visual::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 66% 44%, rgba(0, 95, 247, .22), transparent 39%),
        linear-gradient(180deg, rgba(5, 28, 51, .02), rgba(5, 28, 51, .5));
}

.login-sidebar-visual__fallback {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(rgba(5, 28, 51, .32), rgba(5, 28, 51, .76)),
        url('../img/login-office-gemini.png') center / cover no-repeat;
    opacity: 1;
    transition: opacity .55s ease;
}

.login-sidebar-visual.has-webgl .login-sidebar-visual__fallback {
    opacity: 0;
}

.login-sidebar-visual__caption {
    position: absolute;
    z-index: 6;
    right: 8%;
    bottom: 7%;
    left: 8%;
    color: #ffffff;
}

.login-sidebar-visual__caption span {
    display: block;
    margin-bottom: 8px;
    color: #9fc7ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.login-sidebar-visual__caption h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(25px, 2.5vw, 38px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.hwp-particle-globe {
    position: relative;
    z-index: 3;
    width: min(92%, 760px);
    aspect-ratio: 1;
    margin-bottom: 3%;
    cursor: grab;
    touch-action: pan-y;
}

.hwp-particle-globe:active {
    cursor: grabbing;
}

.hwp-particle-globe__canvas,
.hwp-particle-globe__halo,
.hwp-particle-globe__orbit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hwp-particle-globe__canvas {
    z-index: 3;
    display: block;
    opacity: 0;
    transform: scale(.98);
    transition: opacity .55s ease, transform .7s ease;
}

.hwp-particle-globe.is-webgl-ready .hwp-particle-globe__canvas {
    opacity: 1;
    transform: scale(1);
}

.hwp-particle-globe__halo {
    z-index: 0;
    inset: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 95, 247, .22), rgba(0, 95, 247, .07) 42%, transparent 70%);
    filter: blur(12px);
    animation: hwp-globe-breathe 6s ease-in-out infinite;
}

.hwp-particle-globe__orbit {
    z-index: 1;
    inset: 47% 5% auto;
    width: 90%;
    height: 15%;
    border: 1px solid rgba(159, 199, 255, .18);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.hwp-particle-globe__orbit--two {
    inset: 15% auto auto 47%;
    width: 15%;
    height: 72%;
    opacity: .55;
    transform: rotate(22deg);
}

.hwp-auth-layout .center-container {
    flex: 0 0 48%;
    width: 48%;
    max-width: 48%;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 38px clamp(32px, 5vw, 72px);
    background: #ffffff;
}

.hwp-auth-layout .login-container {
    width: 100%;
    max-width: 450px;
    margin: auto;
    padding: 0;
}

.hwp-auth-layout .login-header {
    margin: 0 0 38px;
    text-align: left;
}

.hwp-auth-layout .login-header a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #051c33;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.hwp-auth-layout .login-header img {
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 40px;
}

#login-box.login-box {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-form-card {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.login-title {
    margin: 0;
    color: #051c33;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.login-subtitle {
    margin: 8px 0 27px;
    color: #53687a;
    font-size: 13px;
    line-height: 1.55;
}

.login-feedback .alert {
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 12px;
    text-align: left !important;
}

.hwp-social-login .providerPreLinking,
.hwp-social-login .social-signin-btns {
    margin: 0;
}

.hwp-social-login .social-signin-btns {
    display: grid;
    gap: 8px;
}

.hwp-social-login .btn,
.hwp-social-login .social-signin-btns .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 0;
    border: 1px solid #d7e0e8;
    border-radius: 7px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #051c33 !important;
    font-size: 13px;
    font-weight: 600;
    text-shadow: none;
}

.hwp-social-login .btn:hover,
.hwp-social-login .btn:focus {
    border-color: #9fc7ff;
    background: #ecf7fe !important;
}

.social-or-login {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #7a8b99;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.social-or-login::before,
.social-or-login::after {
    flex: 1;
    height: 1px;
    content: "";
    background: #e2e8ee;
}

.hwp-login-form .form-group {
    margin-bottom: 17px;
}

.hwp-login-form .form-control-label {
    margin-bottom: 7px;
    color: #051c33;
    font-size: 12px;
    font-weight: 600;
}

.hwp-login-form .input-group {
    width: 100%;
}

.hwp-login-form .form-control {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #cfd9e2;
    border-radius: 7px !important;
    background: #ffffff;
    box-shadow: none;
    color: #051c33;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.hwp-login-form .form-control:focus {
    z-index: 3;
    border-color: #005ff7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 95, 247, .12);
}

.hwp-login-form .pw-input {
    border-right: 0;
    border-radius: 7px 0 0 7px !important;
}

.hwp-login-form .input-group-append {
    display: flex;
}

.hwp-login-form .btn-reveal-pw {
    width: 46px;
    height: 46px;
    margin: 0;
    border: 1px solid #cfd9e2;
    border-left: 0;
    border-radius: 0 7px 7px 0 !important;
    background: #ffffff;
    box-shadow: none;
    color: #667b8b;
}

.hwp-login-form .btn-reveal-pw:hover,
.hwp-login-form .btn-reveal-pw:focus {
    color: #005ff7;
}

.login-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 1px 0 21px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #53687a;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

.login-remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #005ff7;
}

.login-form-options a {
    color: #005ff7;
    font-size: 11px;
    font-weight: 600;
}

.btn-login.btn {
    width: 100%;
    min-height: 46px;
    margin: 0;
    border: 1px solid #005ff7;
    border-radius: 7px !important;
    background: #005ff7 !important;
    box-shadow: none;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-shadow: none;
}

.btn-login.btn:hover,
.btn-login.btn:focus {
    border-color: #004bd0;
    background: #004bd0 !important;
}

.login-captcha {
    margin-bottom: 17px;
    overflow: hidden;
}

.login-twofa-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 13px 0 0;
    color: #718392;
    font-size: 10px;
    line-height: 1.45;
}

.login-twofa-note i {
    margin-top: 2px;
    color: #005ff7;
}

.login-container-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
    color: #667b8b;
    font-size: 11px;
}

.login-container-register a {
    color: #005ff7;
    font-weight: 600;
}

.login-news-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 27px;
    padding: 13px 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ecf7fe;
}

.login-news-widget__icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #005ff7;
    place-items: center;
}

.login-news-widget__content {
    min-width: 0;
}

.login-news-widget__content span,
.login-news-widget__content a {
    display: block;
}

.login-news-widget__label {
    margin-bottom: 3px;
    color: #617487;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-news-widget__content a,
.login-news-widget__content > span:last-child {
    overflow: hidden;
    color: #051c33;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hwp-auth-layout .lang-btn {
    margin-top: 18px;
}

.hwp-auth-layout .lang-btn .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: #667b8b;
    font-size: 10px;
}

@keyframes hwp-globe-breathe {
    0%, 100% {
        opacity: .72;
        transform: scale(.97);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

@media (max-width: 991.98px) {
    .hwp-auth-layout {
        flex-direction: column;
    }

    .hwp-auth-layout .sidebar-container,
    .hwp-auth-layout .center-container {
        flex: none;
        width: 100%;
        max-width: none;
        min-height: 0;
    }

    .hwp-auth-layout .center-container {
        order: 1;
        padding: 34px 28px 40px;
    }

    .hwp-auth-layout .sidebar-container {
        order: 2;
        height: 300px;
    }

    .hwp-auth-layout .sidebar-content,
    .login-sidebar-visual {
        min-height: 300px;
        height: 300px;
    }

    .hwp-particle-globe {
        width: min(70%, 430px);
    }

    .hwp-auth-layout .login-header {
        margin-bottom: 29px;
    }

    .login-sidebar-visual__caption h2 {
        font-size: 25px;
    }
}

@media (max-width: 560px) {
    .hwp-auth-layout .center-container {
        padding: 28px 22px 34px;
    }

    .hwp-auth-layout .sidebar-container,
    .hwp-auth-layout .sidebar-content,
    .login-sidebar-visual {
        height: 230px;
        min-height: 230px;
    }

    .hwp-particle-globe {
        width: min(88%, 340px);
        transform: translateX(12%);
    }

    .login-sidebar-visual__caption {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }

    .login-sidebar-visual__caption h2 {
        max-width: 210px;
        font-size: 21px;
    }

    .login-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .login-news-widget {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hwp-particle-globe__halo {
        animation: none;
    }

    .login-sidebar-visual__fallback,
    .hwp-particle-globe__canvas {
        transition: none;
    }
}
