/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: url('wallpaper.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    overflow: hidden;
}

/* 登录包装器 */
.login-wrapper {
    position: relative;
    z-index: 1;
}

/* 玻璃卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    color: #fff;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题 */
.title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 300;
}

/* 输入框组 */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
    font-size: 1.1rem;
}

/* 毛玻璃输入框 */
.glass-input {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 14px 20px 14px 48px !important;
    height: 52px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
    outline: none;
}

/* 记住我和忘记密码 */
.form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-check-input:checked {
    background-color: #6c5ce7;
    border-color: #6c5ce7;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* 登录按钮美化 */
.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    height: 52px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn span {
    position: relative;
    z-index: 1;
}

/* 页脚 */
.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* 响应式 */
@media (max-width: 480px) {
    .glass-card {
        padding: 40px 25px;
        margin: 20px;
    }
    
    .title {
        font-size: 1.8rem;
    }
}

/* 暗色遮罩增强对比度（可选） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
    pointer-events: none;
}
