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

body {
    font-family: 'Microsoft YaHei', 'DingTalk JinBuTi', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #eaf1fb;
}

/* 背景：浅色网格 + 柔和光晕 */
.login-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.9) 0%, rgba(226, 237, 250, 0.9) 70%),
        linear-gradient(160deg, #f4f8fd, #e3eefb);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(4, 88, 167, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 88, 167, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
}

.glow-1 { width: 420px; height: 420px; top: -120px; left: -80px; background: rgba(0, 122, 255, 0.16); }
.glow-2 { width: 380px; height: 380px; bottom: -100px; right: -60px; background: rgba(4, 88, 167, 0.14); }
.glow-3 { width: 260px; height: 260px; bottom: 120px; left: 30%; background: rgba(38, 132, 255, 0.12); }

/* 居中卡片 */
.login-wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.login-card {
    width: 430px;
    padding: 44px 44px 30px;
    background: #ffffff;
    border: 1px solid rgba(4, 88, 167, 0.16);
    border-radius: 12px;
    box-shadow:
        0 24px 60px rgba(4, 88, 167, 0.14),
        0 6px 20px rgba(4, 88, 167, 0.08);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, transparent, #1a7fff, #0458a7, transparent);
    box-shadow: 0 2px 10px rgba(26, 127, 255, 0.35);
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo-img {
    height: 88px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.login-title {
    font-size: 21px;
    color: #0d2f66;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.login-sub {
    font-size: 11px;
    color: #6b86ab;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.login-divider {
    height: 1px;
    margin: 26px 0 28px;
    background: linear-gradient(90deg, transparent, rgba(4, 88, 167, 0.22), transparent);
}

.field { margin-bottom: 22px; }

.field label {
    display: block;
    font-size: 13px;
    color: #3a5a86;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 13px;
    color: #7fa3cc;
    opacity: 0.9;
    pointer-events: none;
}

.field input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    background: #f4f8fd;
    border: 1px solid #c8d9ee;
    border-radius: 8px;
    color: #123a6b;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.field input::placeholder { color: rgba(92, 122, 160, 0.5); }

.field input:focus {
    border-color: #1a7fff;
    box-shadow: 0 0 0 3px rgba(26, 127, 255, 0.14);
    background: #ffffff;
}

.login-msg {
    min-height: 20px;
    font-size: 13px;
    color: #ff4d4f;
    margin-bottom: 14px;
    text-align: center;
}

.login-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 4px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a7fff, #0458a7);
    box-shadow: 0 10px 24px rgba(4, 88, 167, 0.28);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s;
}

.login-btn:hover::after { left: 120%; }

.login-btn:hover {
    opacity: 0.94;
    box-shadow: 0 12px 28px rgba(4, 88, 167, 0.36);
}

.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-btn:disabled::after { display: none; }

.login-foot {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #7a93b5;
}
