/* GEO 对外认证页：复用登录页的深色 HUD 视觉语言，仅作用于 Pages/Portal。 */
html.portal-auth-html {
    overflow-x: hidden;
}

body.portal-auth {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(64vmax 52vmax at var(--core-x) var(--core-y), var(--glow-core), var(--glow-mid) 46%, transparent 72%),
        radial-gradient(52vmax 46vmax at 92% 104%, var(--glow-edge), transparent 64%),
        radial-gradient(40vmax 34vmax at 6% -8%, var(--glow-tl), transparent 62%),
        linear-gradient(168deg, var(--bg-top) 0%, var(--bg-1) 46%, var(--bg-0) 100%);
    background-attachment: fixed;
    color: var(--hot);
}

body.portal-auth .floor {
    left: 0;
    right: 0;
}

body.portal-auth .netgrid {
    inset: 0;
}

body.portal-auth .topbar {
    height: 56px;
    padding: 0 clamp(18px, 4vw, 46px);
}

body.portal-auth .core {
    width: 46vmin;
    height: 46vmin;
    margin: -23vmin 0 0 -23vmin;
    opacity: .9;
    overflow: hidden;
}

body.portal-auth .core-readout .v {
    font-size: 24px;
    letter-spacing: 1px;
}

body.portal-auth .stage {
    position: relative;
    inset: auto;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 82px 24px 66px;
    overflow: hidden;
}

body.portal-auth .portal-panel {
    width: min(470px, calc(100vw - 32px));
    max-width: none;
}

body.portal-auth .auth-card {
    padding: 28px 32px 30px;
}

body.portal-auth .card-head {
    margin-bottom: 18px;
}

body.portal-auth .auth-title {
    font-size: 27px;
    letter-spacing: 1px;
}

body.portal-auth .auth-subtitle {
    margin: 9px 0 23px;
    line-height: 1.7;
}

body.portal-auth .auth-form {
    margin: 0;
}

body.portal-auth .auth-field {
    margin-bottom: 16px;
}

body.portal-auth .auth-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 7px;
    color: rgba(198, 222, 255, .78);
    font-size: 13px;
    line-height: 1.4;
}

body.portal-auth .auth-label em {
    color: rgba(120, 205, 255, .46);
    font-family: var(--mono);
    font-size: 9px;
    font-style: normal;
    letter-spacing: 1.4px;
    white-space: nowrap;
}

body.portal-auth .auth-box {
    position: relative;
}

body.portal-auth .auth-box .layui-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 43px;
    border: 1px solid rgba(120, 180, 255, .20);
    border-radius: 9px;
    background: rgba(4, 12, 32, .76);
    color: var(--hot);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    transition: border-color .22s, box-shadow .22s, background .22s;
}

body.portal-auth .auth-box .layui-input::placeholder {
    color: rgba(160, 190, 230, .34);
}

body.portal-auth .auth-box .layui-input:hover {
    border-color: rgba(120, 205, 255, .42);
}

body.portal-auth .auth-box .layui-input:focus {
    border-color: rgba(56, 225, 255, .82);
    background: rgba(6, 20, 48, .88);
    box-shadow: 0 0 0 3px rgba(56, 225, 255, .12), inset 0 0 24px rgba(56, 225, 255, .08);
}

body.portal-auth .auth-box .layui-input:-webkit-autofill {
    -webkit-text-fill-color: var(--hot);
    -webkit-box-shadow: 0 0 0 1000px #061430 inset;
    caret-color: var(--hot);
    transition: background-color 9999s;
}

body.portal-auth .auth-box .ico {
    position: absolute;
    left: 14px;
    top: 15px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: rgba(140, 200, 255, .48);
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke .22s;
}

body.portal-auth .auth-box .layui-input:focus ~ .ico {
    stroke: var(--cy);
}

body.portal-auth .auth-help {
    position: absolute;
    right: 10px;
    top: 11px;
    z-index: 2;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(120, 200, 255, .28);
    border-radius: 50%;
    background: rgba(20, 57, 99, .42);
    color: rgba(172, 224, 255, .76);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 24px;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}

body.portal-auth .auth-help:hover,
body.portal-auth .auth-help:focus-visible {
    border-color: rgba(56, 225, 255, .78);
    background: rgba(28, 93, 145, .54);
    color: #fff;
    outline: none;
}

body.portal-auth .auth-code-box .auth-code-input {
    padding-right: 139px;
    font-family: var(--mono);
    letter-spacing: .14em;
}

body.portal-auth .auth-code-box .auth-code-input::placeholder {
    font-family: var(--sans);
    letter-spacing: 0;
}

body.portal-auth .auth-code-send {
    position: absolute;
    right: 7px;
    top: 7px;
    z-index: 2;
    min-width: 122px;
    height: 34px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid rgba(86, 209, 255, .34);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(19, 68, 118, .92), rgba(9, 35, 69, .94));
    color: rgba(195, 239, 255, .92);
    font-family: var(--sans);
    font-size: 12px;
    line-height: 32px;
    letter-spacing: .3px;
    transition: border-color .2s, background .2s, color .2s, opacity .2s;
}

body.portal-auth .auth-code-send:hover,
body.portal-auth .auth-code-send:focus-visible {
    border-color: rgba(86, 225, 255, .82);
    background: linear-gradient(180deg, rgba(24, 86, 145, .96), rgba(10, 47, 88, .96));
    color: #fff;
    outline: none;
}

body.portal-auth .auth-code-send.is-cooling {
    border-color: rgba(120, 170, 220, .18);
    background: rgba(10, 30, 57, .78);
    color: rgba(170, 198, 224, .48);
    cursor: not-allowed;
    opacity: .82;
}

body.portal-auth .auth-submit {
    --cut: 13px;
    position: relative;
    display: flex;
    width: 100%;
    height: 50px;
    margin: 20px 0 0;
    padding: 1px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    background: linear-gradient(115deg, rgba(56, 225, 255, .94), rgba(124, 92, 255, .56) 48%, rgba(56, 225, 255, .24));
    color: var(--hot);
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 2.6px;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow .3s, filter .22s;
}

body.portal-auth .auth-submit::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    background: linear-gradient(180deg, rgba(9, 28, 60, .96), rgba(4, 14, 32, .98));
    transition: background .3s;
}

body.portal-auth .auth-submit::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    z-index: 1;
    width: 32%;
    background: linear-gradient(100deg, transparent, rgba(120, 225, 255, .24), transparent);
    animation: shine 3.8s cubic-bezier(.5, 0, .5, 1) infinite;
}

body.portal-auth .auth-submit > span,
body.portal-auth .auth-submit .ar {
    position: relative;
    z-index: 2;
}

body.portal-auth .auth-submit .ar {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--cy);
    stroke-width: 1.6;
    stroke-linecap: round;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

body.portal-auth .auth-submit:hover {
    color: #fff;
    box-shadow: 0 0 28px rgba(56, 225, 255, .3), inset 0 0 24px rgba(56, 225, 255, .1);
}

body.portal-auth .auth-submit:hover::before {
    background: linear-gradient(180deg, rgba(17, 54, 104, .98), rgba(6, 22, 50, .98));
}

body.portal-auth .auth-submit:hover .ar {
    transform: translateX(5px);
}

body.portal-auth .auth-submit:active {
    filter: brightness(1.16);
}

body.portal-auth .auth-meta {
    display: flex;
    margin-top: 19px;
    align-items: center;
    gap: 9px;
    color: rgba(178, 210, 250, .52);
    font-size: 13px;
    line-height: 1.55;
}

body.portal-auth .auth-meta a {
    color: #7fe9ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(120, 200, 255, .34);
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
}

body.portal-auth .auth-meta a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

body.portal-auth .auth-meta i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(140, 200, 255, .38);
}

body.portal-auth .auth-meta-center {
    justify-content: center;
}

body.portal-auth .auth-alert {
    display: flex;
    margin: 0 0 18px;
    padding: 11px 13px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(255, 118, 118, .4);
    border-radius: 9px;
    background: rgba(78, 14, 26, .56);
    color: #ffb4b4;
    font-size: 13px;
    line-height: 1.65;
}

body.portal-auth .auth-alert-mark {
    display: inline-flex;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 150, 150, .58);
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1;
}

body.portal-auth .auth-notice {
    display: flex;
    margin: 0 0 18px;
    padding: 10px 12px;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid rgba(75, 214, 156, .34);
    border-radius: 9px;
    background: rgba(8, 55, 47, .48);
    color: rgba(205, 255, 237, .88);
    font-size: 13px;
    line-height: 1.6;
}

body.portal-auth .auth-notice-mark {
    display: inline-flex;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(86, 236, 174, .54);
    border-radius: 50%;
    color: #73f1b8;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1;
}

body.portal-auth .auth-result {
    display: flex;
    margin: 4px 0 22px;
    padding: 15px;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid rgba(75, 214, 156, .38);
    border-radius: 10px;
    background: rgba(11, 62, 52, .46);
    color: rgba(221, 255, 244, .9);
}

body.portal-auth .auth-result.is-error {
    border-color: rgba(255, 118, 118, .4);
    background: rgba(78, 14, 26, .5);
    color: #ffb4b4;
}

body.portal-auth .auth-result-mark {
    display: inline-flex;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(86, 236, 174, .6);
    border-radius: 50%;
    background: rgba(33, 154, 109, .18);
    color: #73f1b8;
    font-family: var(--mono);
    font-size: 15px;
    box-shadow: 0 0 18px rgba(38, 215, 147, .14);
}

body.portal-auth .auth-result.is-error .auth-result-mark {
    border-color: rgba(255, 150, 150, .58);
    background: rgba(150, 43, 55, .18);
    color: #ffb4b4;
    box-shadow: none;
}

body.portal-auth .auth-result strong {
    display: block;
    margin: 2px 0 5px;
    color: #fff;
    font-size: 14px;
    letter-spacing: .4px;
}

body.portal-auth .auth-result p {
    margin: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.7;
}

body.portal-auth .auth-result-button {
    margin-top: 0;
}

body.portal-auth .p-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

body.portal-auth .xz-help-off {
    opacity: .45;
}

body.portal-auth .layui-layer-tips .layui-layer-content {
    font-size: 12px;
    line-height: 1.75;
}

@media (max-width: 1080px) {
    body.portal-auth .stage {
        align-items: center;
        justify-content: center;
        padding-bottom: 48px;
    }
}

@media (max-width: 768px) {
    body.portal-auth .topbar {
        height: 50px;
        padding: 0 15px;
    }

    body.portal-auth .brand {
        gap: 8px;
    }

    body.portal-auth .brand .n {
        letter-spacing: 2.4px;
    }

    body.portal-auth .brand .s,
    body.portal-auth .hud-right {
        display: none;
    }

    body.portal-auth .core {
        left: 50%;
        top: 19%;
        width: 96vmin;
        height: 96vmin;
        margin: -48vmin 0 0 -48vmin;
        opacity: .64;
    }

    body.portal-auth .stage {
        min-height: 100svh;
        align-items: flex-start;
        padding: 74px 16px 30px;
    }

    body.portal-auth .portal-panel {
        width: 100%;
    }

    body.portal-auth .auth-card {
        padding: 23px 20px 22px;
        border-radius: 14px;
    }

    body.portal-auth .card-head {
        margin-bottom: 15px;
    }

    body.portal-auth .card-head .id {
        display: none;
    }

    body.portal-auth .auth-title {
        font-size: 24px;
    }

    body.portal-auth .auth-subtitle {
        margin-bottom: 20px;
    }

    body.portal-auth .auth-box .layui-input {
        height: 48px;
        font-size: 16px;
    }

    body.portal-auth .auth-box .ico {
        top: 15px;
    }

    body.portal-auth .auth-help {
        top: 11px;
    }

    body.portal-auth .auth-code-box .auth-code-input {
        font-size: 16px;
    }

    body.portal-auth .caps,
    body.portal-auth .bottombar {
        display: none;
    }
}

@media (max-width: 390px) {
    body.portal-auth .stage {
        padding-inline: 12px;
    }

    body.portal-auth .auth-card {
        padding-inline: 17px;
    }

    body.portal-auth .auth-label {
        font-size: 12px;
    }

    body.portal-auth .auth-label em {
        font-size: 8px;
        letter-spacing: 1px;
    }

    body.portal-auth .auth-code-box .auth-code-input {
        padding-right: 126px;
    }

    body.portal-auth .auth-code-send {
        min-width: 110px;
        padding-inline: 8px;
        font-size: 11px;
    }

    body.portal-auth .auth-meta {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.portal-auth .auth-submit::after {
        animation: none;
    }
}
