/* =========================================
   全局重置
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   1. 页面大背景 (已更换为 images5.png)
   ========================================= */
body {
    font-family: "Microsoft YaHei", sans-serif;

    /* 👇 修改点：背景图换成了 images5.png */
    background-image: url('../images/cover/images5.png');
    
    /* 背景铺满设置 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* 布局居中设置 */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
    overflow: hidden;
}

/* =========================================
   2. 登录卡片 (强化版磨砂玻璃效果)
   ========================================= */
/* ⚠️ 重要：请确保你的 HTML 中包裹卡片的 div 类名是 "login-card" 
   如果不是，请把下面的 .login-card 改成你实际的类名 */
.login-card {
    /* --- 核心磨砂玻璃设置 --- */
    /* 1. 背景色：使用更低的透明度 (0.15) 让背景透出来更多 */
    background: rgba(255, 255, 255, 0.15); 
    
    /* 2. 模糊滤镜：增加模糊度到 20px，效果更明显 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari 兼容 */
    
    /* 3. 边框：添加半透明白边，增强玻璃质感 */
    border: 1px solid rgba(255, 255, 255, 0.4);
    
    /* --- 基础样式 --- */
    border-radius: 20px;             /* 圆角 */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2); /* 阴影加深，突出卡片 */
    
    padding: 40px 30px;
    width: 380px;
    text-align: center;
    color: #333;
    
    /* 确保卡片在背景之上 */
    position: relative;
    z-index: 10;
}

/* =========================================
   3. 头像图片样式
   ========================================= */
.avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8); /* 边框稍微透明一点融合玻璃感 */
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   4. 用户名样式
   ========================================= */
.username {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    /* 文字加一点白色阴影，防止背景太花看不清字 */
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6);
}

/* =========================================
   5. 输入框组样式
   ========================================= */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    /* 标签文字也加一点阴影 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    /* 输入框背景：比卡片更白一点，保证可读性 */
    background-color: rgba(255, 255, 255, 0.75); 
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    color: #333;
    /* 输入框也加一点点模糊，保持整体感 */
    backdrop-filter: blur(5px);
}

.input-group input:focus {
    background-color: rgba(255, 255, 255, 0.95); /* 聚焦时变近乎不透明 */
    box-shadow: 0 0 0 2px #ffcc00; /* 黄色聚焦圈 */
}

/* =========================================
   6. 登录按钮样式
   ========================================= */
.login-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(to right, #ffcc00, #ff9900);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

.login-btn:active {
    transform: translateY(0);
}
/* 滚动条常驻占位：防止部分页面出现滚动条时视口变窄、导航整体挪位 */
html {
    scrollbar-gutter: stable;
}
