:root {
    --cyan: #0adaff;
    --cyan-soft: #7aefff;
    --navy: #00182a;
    --muted: #89afc2;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    color: #effcff;
    background: #010a13;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

.login-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-width: 960px;
    min-height: 620px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 7, 14, .12), rgba(0, 8, 17, .42)),
        url("/images/joyon-bg.png") center/cover no-repeat;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 39% 50%, rgba(1, 125, 185, .15), transparent 31%),
        radial-gradient(circle at 76% 55%, rgba(0, 206, 255, .1), transparent 24%),
        linear-gradient(90deg, rgba(0, 4, 10, .2), transparent 22%, transparent 78%, rgba(0, 4, 10, .2));
    pointer-events: none;
}

.login-atmosphere {
    position: absolute;
    inset: 0;
    opacity: .42;
    background-image:
        linear-gradient(rgba(17, 155, 202, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 155, 202, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent, #000 28%, #000 82%, transparent);
}

.login-brand {
    position: absolute;
    z-index: 3;
    top: clamp(34px, 5vh, 64px);
    left: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 0 16px rgba(10, 218, 255, .7);
}

.login-brand strong {
    font: 900 clamp(30px, 2.4vw, 44px)/1 "Segoe UI", sans-serif;
    letter-spacing: 9px;
}

.login-brand span {
    margin-top: 7px;
    color: #65daf0;
    font-size: 9px;
    letter-spacing: 5px;
}

.login-stage {
    position: absolute;
    z-index: 2;
    top: 54%;
    left: 50%;
    display: grid;
    grid-template-columns: 510px 500px;
    align-items: end;
    gap: clamp(50px, 6vw, 110px);
    width: min(1180px, calc(100vw - 80px));
    transform: translate(-50%, -50%);
}

.login-panel {
    position: relative;
    width: 510px;
    height: 540px;
    padding: 62px 68px;
    border: 5px solid transparent;
    background:
        radial-gradient(circle at 50% 0, rgba(18, 135, 186, .18), transparent 45%),
        linear-gradient(180deg, #032c49, #001b30) padding-box,
        linear-gradient(135deg, #d7f6ff 0, #789db0 10%, #22bee5 37%, #d3f7ff 62%, #58788a 83%, #caf6ff 100%) border-box;
    clip-path: polygon(7% 0, 92% 0, 96% 3%, 96% 57%, 99% 59%, 99% 93%, 95% 98%, 9% 98%, 5% 94%, 5% 7%);
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, .75));
}

.login-panel::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 42px;
    left: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 239, 255, .8), transparent);
    box-shadow: 0 0 8px rgba(10, 218, 255, .55);
}

.login-panel__content {
    position: relative;
    z-index: 1;
}

.login-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.login-heading h1 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.login-heading__line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 218, 255, .68));
}

.login-heading__line:last-child {
    transform: scaleX(-1);
}

.login-subtitle {
    margin: 22px 0 28px;
    color: #99bed0;
    text-align: center;
    font-size: 13px;
}

.login-field {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    margin-bottom: 20px;
    border: 1px solid rgba(10, 218, 255, .28);
    border-radius: 4px;
    background: rgba(0, 29, 52, .72);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-field:focus-within {
    border-color: var(--cyan);
    background: rgba(0, 40, 68, .88);
    box-shadow: 0 0 14px rgba(10, 218, 255, .2), inset 0 0 12px rgba(10, 218, 255, .06);
}

.login-field__icon {
    display: grid;
    flex: 0 0 46px;
    place-items: center;
}

.login-field__icon svg,
.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: #54dff7;
    filter: drop-shadow(0 0 5px rgba(10, 218, 255, .5));
}

.login-field input {
    min-width: 0;
    height: 100%;
    flex: 1;
    padding: 0 8px 0 0;
    border: 0;
    outline: 0;
    color: #eafcff;
    background: transparent;
    font-size: 15px;
    color-scheme: dark;
}

.login-field input::placeholder {
    color: #668ea4;
}

.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus,
.login-field input:-webkit-autofill:active {
    border: 0;
    -webkit-text-fill-color: #eafcff;
    caret-color: #eafcff;
    -webkit-box-shadow: 0 0 0 1000px #00223b inset;
    box-shadow: 0 0 0 1000px #00223b inset;
    transition: background-color 99999s ease-out 0s;
}

.login-field:focus-within input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #002b49 inset;
    box-shadow: 0 0 0 1000px #002b49 inset;
}

.password-toggle {
    display: grid;
    width: 44px;
    height: 100%;
    padding: 0;
    border: 0;
    place-items: center;
    background: transparent;
    cursor: pointer;
    opacity: .65;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
    opacity: 1;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    color: #bdd9e6;
    font-size: 13px;
}

.remember-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-account input {
    position: absolute;
    opacity: 0;
}

.remember-account span {
    position: relative;
    width: 17px;
    height: 17px;
    border: 1px solid #77dff2;
    border-radius: 50%;
    background: rgba(0, 21, 39, .65);
}

.remember-account input:checked + span {
    border-color: var(--cyan);
    box-shadow: 0 0 9px rgba(10, 218, 255, .55);
}

.remember-account input:checked + span::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--cyan);
}

.login-submit {
    position: relative;
    width: 100%;
    height: 48px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #34e3ff;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(180deg, #0dddfb, #04afd3);
    box-shadow: 0 0 14px rgba(10, 218, 255, .26), inset 0 1px 0 rgba(255, 255, 255, .35);
    cursor: pointer;
    font-size: 17px;
    letter-spacing: 2px;
    transition: filter .18s ease, transform .18s ease;
}

.login-submit::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 35%;
    transform: skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
    transition: left .45s ease;
}

.login-submit:hover {
    filter: brightness(1.16);
}

.login-submit:hover::before {
    left: 115%;
}

.login-submit:active {
    transform: translateY(1px);
}

.login-submit:disabled {
    cursor: wait;
    filter: saturate(.65);
}

.login-submit span {
    position: relative;
}

.login-message {
    min-height: 20px;
    margin: 15px 0 0;
    color: #ff9b88;
    text-align: center;
    font-size: 13px;
}

.login-robot {
    position: relative;
    width: 500px;
    height: 540px;
    pointer-events: none;
}

.login-robot__body,
.login-robot__pedestal {
    position: absolute;
    left: 50%;
    display: block;
    object-fit: contain;
    transform: translateX(-50%);
}

.login-robot__body {
    z-index: 2;
    bottom: 20px;
    width: 490px;
    height: 510px;
}

.login-robot__pedestal {
    z-index: 1;
    bottom: -7px;
    width: 470px;
    height: 135px;
    mix-blend-mode: screen;
}

.login-footer {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 17px;
    left: 0;
    color: rgba(119, 191, 215, .5);
    text-align: center;
    font-size: 10px;
    letter-spacing: 4px;
}

@media (max-width: 1180px) {
    .login-stage {
        grid-template-columns: 480px 390px;
        gap: 24px;
        width: 900px;
    }

    .login-panel {
        width: 480px;
    }

    .login-robot {
        width: 390px;
    }

    .login-robot__body {
        width: 410px;
    }

    .login-robot__pedestal {
        width: 390px;
    }
}

@media (max-height: 760px) {
    .login-brand {
        top: 20px;
    }

    .login-stage {
        top: 55%;
        transform: translate(-50%, -50%) scale(.88);
    }
}
