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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 100, 120, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.login-container {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 50px 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    
    /* 金属质感边框 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 30px rgba(150, 150, 150, 0.05);
    
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.login-container:hover {
    border-color: rgba(200, 200, 200, 0.15);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 40px rgba(180, 180, 180, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #f0f0f0;
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #e8e8e8 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.login-header p {
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #d0d0d0;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2f2f2f 100%);
    border: 1.5px solid rgba(150, 150, 150, 0.2);
    border-radius: 10px;
    font-size: 15px;
    color: #e8e8e8;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control::placeholder {
    color: #808080;
}

.form-control:hover {
    border-color: rgba(180, 180, 180, 0.35);
    background: linear-gradient(135deg, #424242 0%, #373737 100%);
}

.form-control:focus {
    outline: none;
    border-color: rgba(200, 200, 200, 0.6);
    background: linear-gradient(135deg, #474747 0%, #3d3d3d 100%);
    box-shadow: 
        0 0 0 3px rgba(150, 150, 150, 0.1),
        inset 0 0 8px rgba(255, 255, 255, 0.05);
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #909090;
    font-size: 18px;
    transition: color 0.3s ease;
}

.input-group .form-control {
    padding-left: 48px;
}

.input-group .form-control:focus ~ i,
.input-group .form-control:focus {
    color: #d0d0d0;
}

/* 记住我区域 */
.remember-group {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    gap: 10px;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #b0b0b0;
    flex-shrink: 0;  /* 防止缩放 */
    margin-top: -10px; /* 微调，如需要可改为 -2px */
}

.remember-label {
    color: #a8a8a8;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    line-height: 1; /* 移除行高影响 */
    display: flex;
    align-items: center;
}

.remember-label:hover {
    color: #d0d0d0;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #5a5a5a 0%, #4a4a4a 50%, #3a3a3a 100%);
    color: #f5f5f5;
    border: 1.5px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #6a6a6a 0%, #5a5a5a 50%, #4a4a4a 100%);
    border-color: rgba(220, 220, 220, 0.5);
    box-shadow: 0 6px 25px rgba(150, 150, 150, 0.2);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

/* 提示信息 */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 14px;
    border: 1px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: linear-gradient(135deg, #3a2a2a 0%, #2f2525 100%);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.alert-success {
    background: linear-gradient(135deg, #2a3a2a 0%, #252f25 100%);
    color: #51cf66;
    border-color: rgba(81, 207, 102, 0.3);
}

/* 登录页脚 */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(150, 150, 150, 0.15);
}

.login-footer p {
    color: #909090;
    font-size: 14px;
    transition: color 0.3s ease;
}

.login-footer a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.login-footer a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 28px;
        max-width: 90%;
    }
    
    .login-header h1 {
        font-size: 26px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 15px;
    }
}