:root {
    --login-navy: #111a32;
    --login-navy-light: #26375f;
    --login-purple: #5945a2;
    --login-accent: #6479e8;
    --login-border: #dfe5ef;
    --login-text: #243149;
    --login-muted: #78859a;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.hk-login-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(100, 121, 232, .12),
            transparent 28rem
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(89, 69, 162, .12),
            transparent 30rem
        ),
        #eef1f6;
    color: var(--login-text);
    font-family: Nunito, sans-serif;
}

.hk-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .34;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(59, 76, 116, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(59, 76, 116, .035) 1px,
            transparent 1px
        );
    background-size: 38px 38px;
}

.hk-login-shell {
    width: min(1160px, calc(100% - 2rem));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: 2rem 0 1.25rem;
}

.hk-login-card {
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    overflow: hidden;
    border: 1px solid rgba(34, 48, 78, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow:
        0 30px 80px rgba(32, 44, 73, .18),
        0 4px 14px rgba(32, 44, 73, .06);
}

/* Introduction panel */

.hk-login-intro {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2.4rem;
    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(123, 91, 207, .55),
            transparent 28rem
        ),
        linear-gradient(
            145deg,
            var(--login-navy) 0%,
            var(--login-navy-light) 56%,
            #46377c 100%
        );
    color: #fff;
}

.hk-login-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, .04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .04) 1px,
            transparent 1px
        );
    background-size: 36px 36px;
    mask-image: linear-gradient(135deg, #000, transparent 75%);
}

.hk-login-intro__glow {
    position: absolute;
    top: -120px;
    right: -110px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, .025),
        0 0 0 110px rgba(255, 255, 255, .018);
}

.hk-login-intro__content,
.hk-login-intro__footer {
    position: relative;
    z-index: 1;
}

.hk-login-intro__content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.hk-login-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.hk-login-brand__logo {
    width: 152px;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 15px;
    background: rgba(255, 255, 255, .07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .07),
        0 12px 28px rgba(0, 0, 0, .2);
}

.hk-login-brand__logo img {
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

.hk-login-brand > div:last-child span,
.hk-login-brand > div:last-child strong {
    display: block;
}

.hk-login-brand > div:last-child span {
    color: #a9b7d8;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hk-login-brand > div:last-child strong {
    margin-top: .15rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.hk-login-intro__copy {
    max-width: 590px;
    margin: auto 0;
    padding: 3rem 0;
}

.hk-login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #bdc9ff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.hk-login-eyebrow svg {
    width: 18px;
    height: 18px;
    color: #9daeff;
}

.hk-login-intro h1 {
    max-width: 570px;
    margin: .85rem 0 0;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -.052em;
    line-height: 1.03;
}

.hk-login-intro__copy > p {
    max-width: 540px;
    margin: 1.1rem 0 0;
    color: #c5d0e4;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.75;
}

.hk-login-intro__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.65rem;
}

.hk-login-intro__features > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    min-height: 76px;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    background: rgba(5, 11, 28, .2);
}

.hk-login-feature-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(151, 167, 255, .12);
    color: #aebcff;
}

.hk-login-feature-icon svg {
    width: 20px;
    height: 20px;
}

.hk-login-intro__features strong,
.hk-login-intro__features small {
    display: block;
}

.hk-login-intro__features strong {
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
}

.hk-login-intro__features small {
    margin-top: .2rem;
    color: #aebbd4;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.4;
}

.hk-login-intro__footer {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #929fbd;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hk-login-intro__footer span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #59dfa0;
    box-shadow: 0 0 10px rgba(89, 223, 160, .7);
}

/* Form panel */

.hk-login-form-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.2rem;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(100, 121, 232, .055),
            transparent 18rem
        ),
        #fff;
}

.hk-login-form-wrap {
    width: min(100%, 410px);
}

.hk-login-form-header > span {
    color: #6679e8;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.hk-login-form-header h2 {
    margin: .5rem 0 0;
    color: var(--login-text);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -.035em;
}

.hk-login-form-header p {
    margin: .55rem 0 0;
    color: var(--login-muted);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.55;
}

.hk-login-alert {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: .7rem;
    margin-top: 1.25rem;
    padding: .8rem .9rem;
    border: 1px solid #f1ccd2;
    border-radius: 11px;
    background: #fff5f6;
    color: #bb4457;
}

.hk-login-alert > svg {
    width: 21px;
    height: 21px;
    margin-top: .1rem;
}

.hk-login-alert strong,
.hk-login-alert span {
    display: block;
}

.hk-login-alert strong {
    font-size: .78rem;
    font-weight: 900;
}

.hk-login-alert span {
    margin-top: .18rem;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.4;
}

.hk-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    margin-top: 1.6rem;
}

.hk-login-field label {
    display: block;
    margin: 0 0 .42rem;
    color: #49566d;
    font-size: .73rem;
    font-weight: 900;
}

.hk-login-input {
    min-height: 51px;
    display: grid;
    grid-template-columns: 47px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--login-border);
    border-radius: 11px;
    background: #f8f9fc;
    box-shadow: inset 0 1px 2px rgba(31, 44, 70, .025);
    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

.hk-login-input:focus-within {
    border-color: rgba(100, 121, 232, .58);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(100, 121, 232, .09);
}

.hk-login-input > span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e5e9f1;
    color: #8793a8;
}

.hk-login-input svg {
    width: 20px;
    height: 20px;
}

.hk-login-input input {
    min-width: 0;
    width: 100%;
    height: 50px;
    padding: 0 .9rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: #2d3a51;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
}

.hk-login-input input::placeholder {
    color: #9aa4b5;
    font-weight: 600;
}

.hk-login-submit {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: .25rem;
    padding: .75rem 1rem;
    border: 0;
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            #536fdd,
            #6a59c7
        );
    box-shadow:
        0 12px 24px rgba(78, 92, 184, .25),
        inset 0 1px 0 rgba(255, 255, 255, .16);
    color: #fff;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform .16s ease,
        filter .16s ease,
        box-shadow .16s ease;
}

.hk-login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 16px 30px rgba(78, 92, 184, .3),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.hk-login-submit:active {
    transform: translateY(0);
}

.hk-login-submit:focus-visible {
    outline: 3px solid rgba(100, 121, 232, .25);
    outline-offset: 3px;
}

.hk-login-submit svg {
    width: 18px;
    height: 18px;
}

.hk-login-notice {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    gap: .6rem;
    margin-top: 1.3rem;
    padding: .75rem;
    border: 1px solid #e6eaf1;
    border-radius: 10px;
    background: #fafbfc;
    color: #7b8799;
}

.hk-login-notice svg {
    width: 18px;
    height: 18px;
    margin-top: .05rem;
}

.hk-login-notice p {
    margin: 0;
    font-size: .69rem;
    font-weight: 600;
    line-height: 1.5;
}

.hk-login-notice strong {
    display: block;
    margin-bottom: .08rem;
    color: #5a6679;
    font-weight: 900;
}

/* Footer */

.hk-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 38px;
    padding-top: 1rem;
    color: #8994a6;
    font-size: .68rem;
    font-weight: 700;
}

.hk-login-footer span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a9b2c1;
}

/* Responsive */

@media (max-width: 940px) {
    .hk-login-shell {
        padding-top: 1rem;
    }

    .hk-login-card {
        grid-template-columns: 1fr;
    }

    .hk-login-intro {
        min-height: 500px;
    }

    .hk-login-form-panel {
        min-height: 560px;
    }
}

@media (max-width: 600px) {
    .hk-login-shell {
        width: min(100% - 1rem, 1160px);
        padding: .5rem 0;
    }

    .hk-login-card {
        border-radius: 17px;
    }

    .hk-login-intro {
        min-height: auto;
        padding: 1.35rem;
    }

    .hk-login-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .hk-login-intro__copy {
        padding: 2.25rem 0;
    }

    .hk-login-intro h1 {
        font-size: 2.45rem;
    }

    .hk-login-intro__features {
        grid-template-columns: 1fr;
    }

    .hk-login-form-panel {
        min-height: auto;
        padding: 2.2rem 1.35rem;
    }

    .hk-login-form-header h2 {
        font-size: 1.65rem;
    }

    .hk-login-footer {
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-login-submit,
    .hk-login-input {
        transition: none;
    }
}