﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    min-height: 100vh;
    background: #0a0f1e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    color: #e0f0ff;
}

/* 动态粒子背景 (Canvas 将绘制在后面) */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* 叠加的科技网格 (纯CSS) */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

/* 大型发光圆环装饰 */
.glow-ring {
    position: fixed;
    width: 70vmax;
    height: 70vmax;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 180, 255, 0.15), transparent 70%);
    top: -20vmax;
    right: -10vmax;
    z-index: 1;
    filter: blur(60px);
    animation: floatGlow 18s infinite alternate ease-in-out;
}

.glow-ring-bottom {
    position: fixed;
    width: 80vmin;
    height: 80vmin;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 70%, rgba(150, 0, 255, 0.12), transparent 70%);
    bottom: -10vmin;
    left: -10vmin;
    z-index: 1;
    filter: blur(70px);
    animation: floatGlow2 22s infinite alternate;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(8%, 8%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes floatGlow2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    100% {
        transform: translate(-8%, -5%) scale(1.3);
        opacity: 0.7;
    }
}

/* 主登录卡片 — 毛玻璃 + 发光边框 */
.login-container {
    position: relative;
    z-index: 10;
    width: 96%;
    max-width: 540px;
    background: rgba(12, 20, 35, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 255, 255, 0.2) inset, 0 0 40px rgba(0, 180, 255, 0.2);
    padding: 2.8rem 2.2rem 3rem;
    transition: box-shadow 0.3s;
    animation: cardAppear 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

    .login-container:hover {
        box-shadow: 0 30px 60px -12px rgba(0, 180, 255, 0.3), 0 0 0 1px rgba(0, 255, 255, 0.5) inset, 0 0 60px rgba(0, 210, 255, 0.3);
    }

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 头部标志与标题 */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.8rem;
}

.icon-lock {
    font-size: 3.2rem;
    background: linear-gradient(135deg, #a0f0ff, #70a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 15px #00a6ff);
    margin-bottom: 0.2rem;
}

.logo-area h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
    background: linear-gradient(to right, #e0f0ff, #a0d0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    font-weight: 600;
}

.logo-area .sub {
    font-size: 0.85rem;
    color: #7f9fcc;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 0.4rem;
}

/* 表单字段 */
.input-group {
    margin-bottom: 1.8rem;
    position: relative;
}

    .input-group label {
        display: block;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #9bc0ff;
        margin-bottom: 0.4rem;
        margin-left: 0.5rem;
        font-weight: 400;
        text-shadow: 0 0 5px rgba(0,160,255,0.5);
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper .icon {
        position: absolute;
        left: 16px;
        color: #2cc0ff;
        font-size: 1.2rem;
        opacity: 0.8;
        text-shadow: 0 0 8px #00d9ff;
        z-index: 2;
    }

    .input-wrapper input {
        width: 100%;
        background: rgba(8, 18, 38, 0.7);
        border: 1px solid rgba(0, 230, 255, 0.3);
        border-radius: 50px;
        padding: 1rem 1rem 1rem 3rem;
        font-size: 1rem;
        color: #f0f8ff;
        outline: none;
        transition: all 0.25s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 15px rgba(0, 255, 255, 0.1) inset;
        backdrop-filter: blur(4px);
    }

        /* ----- 关键修改：彻底去除自动填充黄色背景 ----- */
        .input-wrapper input:-webkit-autofill,
        .input-wrapper input:-webkit-autofill:hover,
        .input-wrapper input:-webkit-autofill:focus,
        .input-wrapper input:-webkit-autofill:active {
            -webkit-background-clip: text;
            -webkit-text-fill-color: #f0f8ff !important;
            -webkit-box-shadow: 0 0 0px 1000px rgba(8, 18, 38, 0.9) inset !important;
            box-shadow: 0 0 0px 1000px rgba(8, 18, 38, 0.9) inset !important;
            border: 1px solid rgba(0, 230, 255, 0.5);
            transition: background-color 9999s ease-in-out 0s;
            caret-color: #f0f8ff;
        }

        /* 针对主流浏览器的自动填充样式 (非-webkit) */
        .input-wrapper input:autofill {
            background: rgba(8, 18, 38, 0.9) !important;
            color: #f0f8ff !important;
            border-color: rgba(0, 230, 255, 0.5);
        }

        .input-wrapper input:focus {
            border-color: #00f0ff;
            box-shadow: 0 0 20px rgba(0, 230, 255, 0.5), 0 0 0 2px rgba(0, 255, 255, 0.2) inset;
            background: rgba(12, 25, 48, 0.9);
        }

        .input-wrapper input::placeholder {
            color: #4b6f99;
            font-weight: 300;
            font-size: 0.9rem;
            letter-spacing: 0.3px;
        }

/* 附加选项 (记住我 & 忘记密码) */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 2rem;
    font-size: 0.9rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0d0ff;
    cursor: pointer; /* 可点击 */
}

    .remember input[type="checkbox"] {
        appearance: none;
        width: 18px;
        height: 18px;
        background: rgba(0, 30, 50, 0.7);
        border: 1px solid #1faaff;
        border-radius: 5px;
        cursor: pointer;
        position: relative;
        box-shadow: 0 0 8px #0099ff;
        transition: all 0.1s;
    }

        .remember input[type="checkbox"]:checked {
            background: rgba(0, 160, 255, 0.3);
            border-color: #00ffff;
        }

            .remember input[type="checkbox"]:checked::before {
                content: "✓";
                position: absolute;
                color: #00ffff;
                font-size: 14px;
                top: -1px;
                left: 3px;
                filter: drop-shadow(0 0 6px cyan);
            }

.forgot-link {
    color: #7db6ff;
    text-decoration: none;
    border-bottom: 1px dashed #2f80ed;
    padding-bottom: 2px;
    transition: 0.2s;
    cursor: pointer;
}

    .forgot-link:hover {
        color: #c0e0ff;
        border-bottom-color: #00e0ff;
        text-shadow: 0 0 6px cyan;
    }

/* 登录按钮 (科技感十足) */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #0066cc, #0099ff, #00ccff);
    border: none;
    border-radius: 60px;
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #0a142c;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
    box-shadow: 0 10px 20px -5px rgba(0, 100, 255, 0.5), 0 0 30px #00b7ff, 0 0 15px #0077ff inset, 0 0 5px #9fd9ff inset;
    cursor: pointer;
    transition: 0.25s;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

    .login-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
        transition: left 0.5s;
    }

    .login-btn:hover {
        background: linear-gradient(135deg, #0077dd, #00aaff, #00ddff);
        box-shadow: 0 15px 30px -3px #0066ff, 0 0 50px #00b3ff, 0 0 20px #0080ff inset;
        transform: scale(1.02);
        letter-spacing: 4px;
    }

        .login-btn:hover::before {
            left: 100%;
        }

/* 安全提示 & 指纹图标 */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: #7f9fd5;
    font-size: 0.85rem;
    border-top: 1px solid rgba(0, 200, 255, 0.3);
    padding-top: 1.8rem;
    margin-top: 0.5rem;
}

    .security-note span {
        font-size: 1.2rem;
        filter: drop-shadow(0 0 8px #4ae2ff);
    }

/* 底部版本号 */
.version {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #3e6188;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem 2.5rem;
    }

    .logo-area h2 {
        font-size: 1.7rem;
    }
}
