:root {
    --bg: #1a4180;
    --panel: #22508f;
    --field: rgba(48, 88, 150, .7);
    --line: rgba(120, 170, 255, .22);
    --text: #fff;
    --muted: #c6d8f5;
    --dim: #8fb0dc;
    --brand: #0066FF;
    --cyan: #00C6FF;
}

* {
    box-sizing: border-box;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans SC", "Saira", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    color: #66E0FF;
}

input {
    font-family: inherit;
}

input::placeholder {
    color: #D3E2F7;
    -webkit-text-fill-color: #D3E2F7;
    opacity: 1;
}

.field input::placeholder {
    color: #D3E2F7;
    -webkit-text-fill-color: #D3E2F7;
    opacity: 1;
}

.shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 18% 12%, rgba(0, 102, 255, .42), transparent 65%),
        radial-gradient(700px 480px at 8% 96%, rgba(0, 198, 255, .22), transparent 60%),
        radial-gradient(620px 420px at 96% 88%, rgba(255, 106, 0, .16), transparent 62%);
}

.brandside {
    position: relative;
    flex: 1;
    min-width: 520px;
    padding: 104px 64px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 34px;
}

.brandside img {
    width: min(470px, 80%);
    display: block;
}

.brandside-copy {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.headline {
    font-family: Saira, sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(40px, 4.6vw, 74px);
    line-height: .98;
    letter-spacing: -.01em;
    margin: 0;
}

.headline span {
    background: linear-gradient(100deg, #00C6FF, #0066FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .08em;
}

.tagrow i {
    display: block;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00C6FF);
}

.tagrow i.r {
    background: linear-gradient(90deg, #00C6FF, transparent);
}

.panel {
    position: relative;
    width: clamp(430px, 38vw, 560px);
    flex: none;
    padding: 44px 72px 40px;
    border-left: 1px solid rgba(120, 170, 255, .14);
    display: flex;
    flex-direction: column;
}

.panel form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.toprow {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

.langwrap {
    position: relative;
}

.pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: .06em;
    color: var(--muted);
    user-select: none;
    font-family: inherit;
}

.pill:hover,
.langwrap.open .pill {
    border-color: rgba(0, 198, 255, .6);
}

.iconbtn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
}

.iconbtn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.menu {
    position: absolute;
    top: 46px;
    right: 0;
    z-index: 20;
    min-width: 142px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid rgba(150, 190, 255, .3);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .4);
    display: none;
    flex-direction: column;
    gap: 2px;
}

.langwrap.open .menu {
    display: flex;
}

.menu li {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #e8f0ff;
    cursor: pointer;
    white-space: nowrap;
}

.menu li:hover,
.menu li.active {
    background: rgba(255, 255, 255, .14);
}

.login-lang-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.title {
    margin: 38px 0 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .02em;
}

.sub {
    margin-top: 10px;
    font-size: 14px;
    color: var(--dim);
    letter-spacing: .06em;
}

.form {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.field > span {
    font-size: 13px;
    color: #9db3d4;
    letter-spacing: .04em;
}

.field input {
    height: 52px;
    width: 100%;
    padding: 0 18px;
    background: var(--field);
    border: 1px solid rgba(150, 190, 255, .3);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    outline: none;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 99999s ease-in-out 0s, color 99999s ease-in-out 0s;
}

.field input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, .15);
}

/* 覆盖浏览器自动填充的白底黑字 */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(48, 88, 150, .95) inset !important;
    box-shadow: 0 0 0 1000px rgba(48, 88, 150, .95) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border-color: rgba(150, 190, 255, .3);
    transition: background-color 99999s ease-in-out 0s, color 99999s ease-in-out 0s;
}

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 48px;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pw-toggle:hover {
    color: #fff;
}

.pw-toggle .icon-eye-off {
    display: none;
}

.pw-toggle.is-open .icon-eye {
    display: none;
}

.pw-toggle.is-open .icon-eye-off {
    display: block;
}

.cap {
    display: flex;
    gap: 12px;
}

.cap input {
    flex: 1;
    min-width: 0;
}

.capimg {
    width: 132px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(120deg, #2c5da0, #3a72b8);
    cursor: pointer;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.submit {
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    height: 58px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(100deg, #0066FF, #00A6FF 55%, #00C6FF);
    color: #fff;
    font-family: Saira, "Noto Sans SC", sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .16em;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 102, 255, .35);
}

.submit:hover {
    box-shadow: 0 18px 40px rgba(0, 150, 255, .5);
}

.submit .sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    animation: sweep 3.2s infinite;
}

@keyframes sweep {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.login-message {
    margin-top: 14px;
    font-size: 13px;
    color: #ffb4b4;
    text-align: center;
}

.foot-stack {
    margin-top: auto;
    padding-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foot {
    display: flex;
    justify-content: center;
    color: var(--dim);
    font-size: 13px;
}

@media (max-width: 1320px) {
    .tagrow i {
        width: 28px;
    }
}

@media (max-width: 1180px) {
    .shell {
        flex-direction: column;
    }

    .brandside {
        min-width: 0;
        padding: 34px 26px 0;
        gap: 18px;
    }

    .brandside img {
        width: 270px;
    }

    .headline {
        font-size: 34px;
    }

    .tagrow {
        font-size: 15px;
        gap: 12px;
    }

    .tagrow i {
        width: 34px;
    }

    .panel {
        width: 100%;
        padding: 26px 24px 34px;
        border-left: none;
    }

    .title {
        margin-top: 22px;
        font-size: 24px;
    }

    .form {
        margin-top: 20px;
        gap: 14px;
    }

    .field input,
    .capimg {
        height: 50px;
    }

    .capimg {
        width: 112px;
    }

    .submit {
        margin-top: 8px;
        height: 54px;
        font-size: 17px;
    }

    .foot-stack {
        padding-top: 26px;
    }
}
