@font-face {
    font-family: 'AlimamaShuHeiTi';
    src: url('fonts/AlimamaShuHeiTi-Bold.woff2') format('woff2');
    font-display: swap;
}

:root {
    --panel-border: #12365f;
    --cyan: #00d8ff;
    --text: #d5e6ff;
    --muted: #a2b9dc;
    --danger: #ff4d5e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    background: url('../img/loginbg.jpg') center center no-repeat #010e32;
		background-size: cover;
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(0, 216, 255, .06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 216, 255, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(1200px 800px at 50% 40%, #000 30%, transparent 85%);
    pointer-events: none;
}

.scan {
    position: fixed;
    left: 0; right: 0; top: -140px;
    height: 140px;
    background: linear-gradient(180deg, transparent, rgba(0, 216, 255, .07), transparent);
    animation: scan 7s linear infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes scan { from { top: -140px; } to { top: 100%; } }

.panel {
    background: linear-gradient(180deg, rgba(10, 30, 64, .8), rgba(4, 16, 40, .74));
    border: 1px solid rgba(38, 96, 160, .5);
    border-radius: 0 16px 0 16px;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 80, 160, .1), 0 4px 18px rgba(0, 0, 0, .28);
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.panel::before, .panel::after {
    content: "";
    position: absolute;
    width: 24px; height: 24px;
    pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); border-top-left-radius: 0; filter: drop-shadow(0 0 4px rgba(0, 216, 255, .8)); }
.panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); border-bottom-right-radius: 0; filter: drop-shadow(0 0 4px rgba(0, 216, 255, .8)); }

.btn-neon {
    background: linear-gradient(180deg, rgba(0, 216, 255, .88), rgba(0, 216, 255, .68));
    border: 1px solid var(--cyan);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 1px;
    transition: .2s;
}
.btn-neon:hover { background: linear-gradient(180deg, rgba(0, 216, 255, 1), rgba(0, 216, 255, .88)); }
.btn-neon:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.login-body { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
.login-box { width: 460px; padding: 54px 36px 28px; z-index: 2; }
.login-box .lg-title {
    text-align: center;
    font-family: 'AlimamaShuHeiTi', 'Microsoft YaHei', sans-serif;
    font-size: 34px;
    font-weight: normal;
    letter-spacing: 4px;
    background-image: linear-gradient(180deg, #ffffff 18%, #8cddff 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 80, 160, .65));
    margin-bottom: 6px;
}
.login-box .lg-sub { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 3px; margin-bottom: 26px; }
.login-box .fd { margin-bottom: 16px; }
.login-box .fd label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; letter-spacing: 1px; }
.login-box .fd input {
    width: 100%;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--panel-border);
    color: #333333;
    padding: 12px 12px;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    letter-spacing: 1px;
}
.login-box .fd input:focus { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0, 216, 255, .35); }
.login-box .btn-neon { width: 100%; padding: 10px; font-size: 20px; font-weight: bold; text-shadow: 0 1px 1px rgba(0, 0, 0, .48); letter-spacing: 4px; margin-top: 16px; }
.login-box .lg-err { color: var(--danger); font-size: 12px; min-height: 18px; margin-top: 10px; text-align: center; }
